Create a new payment request
Create a new payment request
Request body
Example request
{
"merchant_id": "550e8400-e29b-41d4-a716-446655440000",
"customer": {
"name": "John Doe",
"email": "john.doe@example.com",
"phone_number": "07123456789"
},
"billingAddress": {
"address_line1": "12 West Common Drive",
"address_line2": "Flat 1",
"apartment": "Apt 5B",
"city": "London",
"state_province": "Greater London",
"country": "GB",
"postal_code": "SE1 1AA",
"company_name": "Acme Ltd"
},
"amount": 19.99,
"currency": "GBP",
"payment_reference": "ORDER123",
"order_id": "1140",
"locale": "en_GB",
"platform": "WooCommerce",
"device_type": "mobile",
"external_payment_request_id": "u0nwmSrNntjIWozmNslK5Tlq",
"group": "rZNvy+1jH6Z+BcPqA5U5BSIcnUavBha3C63xBalm+xE=",
"gid": "gid://shopify/PaymentSession/u0nwmSrNntjIWozmNslK5Tlq",
"selected_bank_id": "38c39d03-8df3-4980-b0a8-7e283c8c62dd",
"session_id": "4B2dxmle3vGgimS4deUX3+2PgLF2+/0ZWnNsNSZcgdU=",
"success_url_redirect": "https://storename.com/success",
"fail_url_redirect": "https://storename.com/failure"
}Response
Success
Example response
{
"success": true,
"data": {
"payment_link": "https://example.com/pay/abc123"
}
}Changes
Changed in 3 of the 8 revisions of this API.736
- ▲
the
billingAddress/countryrequest property's minLength was increased from0to2request-property-min-length-increased
- ▲
the
currencyrequest property's minLength was increased from0to3request-property-min-length-increased
- ▲
added the pattern
^[A-Za-z]{2}$to the request propertybillingAddress/countryrequest-property-pattern-added
- ▲
added the pattern
^[A-Za-z]{3}$to the request propertycurrencyrequest-property-pattern-added
- ▲
the
error/coderesponse's property type/format changed fromstring/to/for status400response-property-type-changed
- ▲
removed the success response with the status
201response-success-status-removed
- ●
the
billingAddress/countryrequest property's maxLength was set to2request-property-max-length-set
- ●
the
currencyrequest property's maxLength was set to3request-property-max-length-set
- ●
removed the optional property
error/errorsfrom the response with the400statusresponse-optional-property-removed
- ○
added the new optional request property
merchant_idnew-optional-request-property
- ○
added the new optional request property
simulationnew-optional-request-property
- ○
added the optional property
error/metadatato the response with the400statusresponse-optional-property-added
- ○
added
subschema #1subschema #2to theerror/coderesponse propertyallOflist for the response status400response-property-all-of-added
- ○
added the success response with the status
200response-success-status-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 367 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲