Provisions a reusable Pay by Bank destination for a shopper. Creates no transaction.
The body is a flat JSON object. apmProvider at the root selects how the body is parsed:
Cvufor an Argentine CVU accountBrebfor a Colombian Bre-B Llave.
If you omit apmProvider, the gateway treats the request as CVU. Values are case-sensitive PascalCase. An unrecognised or non-string value is rejected with 400 and The apmProvider field is invalid.
Present the returned account details (cvu and alias, or brebKey) so the shopper can push a transfer from their banking app. The final deposit confirmation arrives by merchant webhook.
For CVU, only merchant, site, and shopperId are always required. When you need the provider to create a new CVU, also send the shopper details such as email, firstName, lastName, documentType, and documentNumber.
Bre-B doesn't support alias updates.
Identifies the Pay by Bank provider for this provision request. This field selects behaviour: Cvu parses the body as CVU, Breb parses it as Bre-B. Values are case-sensitive PascalCase.
If you omit apmProvider, the gateway treats the request as CVU.
Your merchant identifier, as assigned by PXP.
Your unique identifier for this shopper. Together with merchant and site, it determines which CVU account is returned: there's one active CVU account for each shopper at a given merchant and site. A repeat call with the same three values returns that same account unchanged.
The shopper's username. The gateway accepts this field on a CVU provision request but ignores it.
The shopper's email address. Needed when generating a new CVU.
The shopper's first name. Needed when generating a new CVU.
The shopper's last name. Needed when generating a new CVU.
The shopper's country, in ISO-3166-1 alpha-2 format. Stored on the context. Not sent to the provider.
The shopper identity document type. Needed when generating a new CVU. Treat as sensitive.
The gateway doesn't enforce a closed list here. Any string in that length range is accepted at this layer. An unrecognised value fails further downstream with a different error.
Use one of these values:
IdentityDocumentPassportTaxIdNumberForeignResidentCardCivilRegisterId
This list is guidance only. Alias assignment uses a different, enforced set of document types.
The shopper identity document number. Needed when generating a new CVU. Treat as sensitive.
- Production environmenthttps://api-services.pxp.io/api/v1/transaction-contexts
- Sandbox environmenthttps://api-services.test.pxp.io/api/v1/transaction-contexts
curl -i -X POST \
https://api-services.pxp.io/api/v1/transaction-contexts \
-H 'Content-Type: application/json' \
-d '{
"merchant": "MERCHANT-1",
"site": "SITE-1",
"apmProvider": "Cvu",
"shopperId": "Shopper_AR_01",
"email": "maria.lopez@example.com",
"firstName": "Maria",
"lastName": "Lopez",
"country": "AR",
"documentType": "TaxIdNumber",
"documentNumber": "20123456789",
"nickName": "maria-lopez"
}'Existing or newly provisioned transaction context. Optional fields are omitted when they have no value, rather than returned as null.
Provisioned CVU transaction context. transactionContextId, status, and isEligibleForWithdrawal are always present. Every other field is omitted when it has no value, rather than returned as null. On failure, status is Error and errorCode and errorMessage are PXP-mapped values, never a raw provider code or provider text. This schema is the provision response. Alias updates use cvuAliasResponse.
The PXP identifier for the provisioned context. Use this as the path parameter when updating the alias.
The merchant outcome of the provision.
Possible values:
Success: a CVU is returnedError: the operation failed (seeerrorCodeanderrorMessage)
Whether the context is currently eligible for withdrawal. Always present. Reflects the stored value, including on an idempotent replay.
The Pay by Bank provider for this context, returned as a plain string.
The 22-digit CVU account number the shopper transfers funds to. Treat as sensitive.
PXP-authored error message. Present only when status is Error. Never raw provider text.
When the transaction context was created, in ISO 8601 or RFC 3339 date-time format.
{ "transactionContextId": "3f6f0d0e-6d2a-4b7e-9d3c-1a2b3c4d5e6f", "status": "Success", "isEligibleForWithdrawal": false, "merchant": "MERCHANT-1", "site": "SITE-1", "shopperId": "Shopper_AR_01", "apmProvider": "Cvu", "cvu": "0000003100010000000001", "alias": "maria.lopez.cvu", "creationDateTime": "2026-08-28T12:00:00Z" }