v2.post_purchase_flows

Create an API v2 post-purchase flow

post/post-purchase-flows

Request

  • Base URL: https://api.cooud.com/v2
  • URL: https://api.cooud.com/v2/post-purchase-flows
  • Auth: HTTP bearer

Headers

Cooud-Compat-Datestring date required

Required per-request compat-date. Format: ISO calendar date YYYY-MM-DD. Merchants pinned to an older date have their request and response transformed by every gate whose appliesAfter is strictly greater than this date.

Idempotency-Keystring

Optional key for safely retrying POST requests. Reusing a key with the same body replays the first 2xx response; reusing it with a different body returns idempotency_key_in_use.

Request body

namestring nullable
routing_mode'sequential' required
metadataV2PostPurchaseFlowMetadata

Merchant metadata copied into the immutable post-purchase flow graph. Keys are limited to 40 characters and the object is limited to 50 keys.

Response

Reusable API v2 post-purchase flow created. The Location header points to the flow resource.

idstring required
object'post_purchase_flow' required
status'active' | 'archived' required
namestring nullable required
revisionstring required
routing_mode'sequential' required
offer_countinteger required
item_countinteger required
createdinteger required
updatedinteger required
request_idstring

Changes

No recorded changes to this operation across all 1 revision of this API.