Handle update payment

Hook to update payment on changes.

SecurityBearer
Request
path Parameters
order_id
required
string

Order identifier

payment_id
required
string

Payment identifier

header Parameters
x-merchant
required
string

Merchant identifier.

Example: norce
x-channel
required
string

Channel identifier

Example: 1
Request Body schema: application/json

Updated order

id
string

Unique identifier for the order

merchant
string

Merchant identifier

channel
string

Merchant channel

reference
string

External order reference

created
string <date-time>

Order creation date time

lastModified
string <date-time>

Order last modified date time

object

Order state

culture
string

Order Culture

currency
string

Order Currency

country
string

Order Country

object

Order cart

Array of objects (Shipping)

Shippings related to the order

Array of objects (Payment)

Payments related to the order

object

Customer information

Array of objects (Consent)

Order consents

Array of objects (Callback)

Order actions are called in order to complete an action, such as 'Validate'. If provided the action is not completed if the response is not successful (eg. http status code 400), note however that in case of a time constraint the action might be completed without a successful response.

Array of objects (Hook)

Hooks, added by a separate endpoint.

Array of objects (Validation)

Validations, added by a separate endpoint.

object

Order total including shipping fees

object

Allows you to store any custom attributes for the order.

Responses
200

OK

400

Bad Request

404

Not Found

post/api/checkout/v1/callback/orders/{order_id}/payments/{payment_id}/update-payment
Request samples
application/json
{
  • "id": "o_yClTSySjyAuuBjmiBlHCjuEcTf",
  • "merchant": "string",
  • "channel": "string",
  • "reference": "string",
  • "created": "2019-08-24T14:15:22Z",
  • "lastModified": "2019-08-24T14:15:22Z",
  • "state": {
    },
  • "culture": "string",
  • "currency": "string",
  • "country": "string",
  • "cart": {
    },
  • "shippings": [
    ],
  • "payments": [
    ],
  • "customer": {
    },
  • "consents": [
    ],
  • "actions": [],
  • "hooks": [],
  • "total": {
    },
  • "attributes": {
    }
}
Response samples
application/json
[
  • {
    }
]
Copyright © Norce 2024. All right reserved.