POST
/
payment
/
process
curl --request POST \
  --url https://api.myxspend.com/v1/payment/process \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-COMPANY-ID: <api-key>' \
  --data '{
  "firstName": "<string>",
  "lastName": "<string>",
  "customerOrderId": "<string>",
  "email": "<string>",
  "phoneNo": "<string>",
  "amount": 123,
  "currency": "USD",
  "success_url": "<string>",
  "fail_url": "<string>"
}'
{
  "country": "<string>",
  "CreatedOn": "<string>",
  "currency": "<string>",
  "customerOrderId": "<string>",
  "PaymentLink": "<string>",
  "PaymentLinkCode": "<string>",
  "responseCode": "<string>",
  "responseMessage": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

X-API-KEY
string
header
required
X-COMPANY-ID
string
header
required

Body

application/json
Payment details

The body is of type object.

Response

200
application/json
Successful payment response

The response is of type object.