Creates one share per user in the request. Maximum 50 users per request. Can be called multiple times to add more users; existing shares for the same user are updated.
POST
/2026-2/payment-methods/{paymentMethodId}/shares
curl \
--request POST 'https://api.pace.cloud/payment/2026-2/payment-methods/9ff485e6-b028-420e-91cb-4438e335d964/shares' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"expiresAt":"2025-12-31T23:59:59.000Z","userIds":["263ca0fd-60a4-4369-80d6-52f55e9617c8","b0c2b734-7ec7-4404-a7bb-a0262c80c81c"]}'
Request examples
{
"expiresAt": "2025-12-31T23:59:59.000Z",
"userIds": [
"263ca0fd-60a4-4369-80d6-52f55e9617c8",
"b0c2b734-7ec7-4404-a7bb-a0262c80c81c"
]
}
Response examples (201)
{
"data": [
{
"createdAt": "2023-10-01T12:00:00.000Z",
"expiresAt": "2025-12-31T23:59:59.000Z",
"id": "92e5ec38-2a2c-4040-8158-f053b1f45054",
"paymentMethodId": "45981481-b14d-4075-a8bc-d9626979a3ba",
"updatedAt": "2023-10-01T12:00:00.000Z",
"userId": "9d38dbaa-3f65-4453-b6f3-53673bd1a413"
}
]
}