Payments

Make a payment to an order recently placed

Given the orderId, totalAmount in specific currency along with creditCard information, a payment with an unique paymentId will be made and returned.

post/payments

Request body

paymentIdstring
createdAtstring date-time

Creation date/time of the payment in ISO 8601 format (UTC)

orderIdstring required
currencystring required
totalAmountnumber required

Example request

{
  "paymentId": "956de7da-ece8-4ba1-acf4-37aeda78cb13",
  "orderId": "a7dd1cf6-dc96-490b-bdf6-8685dbf5bb87",
  "currency": "EUR",
  "totalAmount": 456.78,
  "creditCard": {
    "number": "5250567933594297",
    "cvc": "123",
    "expiryMonth": "08",
    "expiryYear": "24",
    "holderFirstName": "Peter",
    "holderLastName": "Parker",
    "address": "738 Winter Garden Drive",
    "city": "New York",
    "zipCode": "11375",
    "countryCode": "US"
  }
}

Response

OK

paymentIdstring
createdAtstring date-time

Creation date/time of the payment in ISO 8601 format (UTC)

orderIdstring required
currencystring required
totalAmountnumber required

Example response

{
  "paymentId": "956de7da-ece8-4ba1-acf4-37aeda78cb13",
  "orderId": "a7dd1cf6-dc96-490b-bdf6-8685dbf5bb87",
  "currency": "EUR",
  "totalAmount": 456.78,
  "creditCard": {
    "number": "5250567933594297",
    "cvc": "123",
    "expiryMonth": "08",
    "expiryYear": "24",
    "holderFirstName": "Peter",
    "holderLastName": "Parker",
    "address": "738 Winter Garden Drive",
    "city": "New York",
    "zipCode": "11375",
    "countryCode": "US"
  }
}

Changes