Patch consent, will only change value of Checked.

Patch consent

SecurityBearer
Request
path Parameters
order_id
required
string

Order identifier

consent_id
required
string

Consent identifier

header Parameters
x-merchant
required
string non-empty

Merchant identifier.

Example: norce
x-channel
required
string non-empty

Channel identifier

Example: 1
Request Body schema: application/json

Consent

id
string

Unique ID for the consent item.

checked
boolean

Consent checked status.

text
string

Consent description.

required
boolean

Required for transitioning order state to 'Processing'

Responses
200

OK

400

Bad Request

401

Unauthorized

404

Not Found

500

Internal Server Error

patch/api/v0/checkout/orders/{order_id}/consents/{consent_id}
Request samples
application/json
{
  • "id": "ci_newsleter",
  • "checked": true,
  • "text": "string",
  • "required": true
}
Response samples
application/json
{
  • "code": "order-not-found",
  • "message": "Order with id:{id} not found."
}
Copyright © Norce 2024. All right reserved.