{"openapi":"3.1.0","info":{"title":"PayDing merchant API","version":"1.0.0","description":"Payment intents for InstaPay payments confirmed from the store's bank messages.\n\nAuthenticate with `Authorization: Bearer <key>`: `im_live_...` keys act on live intents, `im_test_...` keys on test intents and the sandbox endpoint.\n\nAmounts are integer piasters (1 EGP = 100 piasters); timestamps are RFC 3339 UTC; field names are snake_case.\n\nSend customers to `checkout_url`. State changes are delivered as signed webhooks (payment_intent.confirmed, payment_intent.amount_mismatch, payment_intent.needs_review, payment_intent.expired, payment_intent.cancelled) whose `data` is `{ \"payment_intent\": <the PaymentIntent object> }` (docs/contracts/merchant-api.md, section 11).\n\nRate limits: 600 requests a minute per API key on every endpoint (the sandbox included), 120 intent creations a minute per key, and 20 failed authentications per 5 minutes per client address. Over a limit the API answers 429 `rate_limited` with a `Retry-After` header in seconds."},"servers":[{"url":"https://payding.it.com/api/v1"}],"security":[{"bearerAuth":[]}],"paths":{"/payment_intents":{"post":{"operationId":"createPaymentIntent","summary":"Create a payment intent","description":"Returns 201 with the new intent, or 200 with the intent created earlier when the same Idempotency-Key and body are sent again (header `Idempotent-Replayed: true`).","parameters":[{"in":"header","name":"idempotency-key","schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[\\x21-\\x7e]+$","description":"Makes the request safe to retry: the same key returns the same intent."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentIntentRequest"}}}},"responses":{"200":{"description":"Replay of an earlier request with the same Idempotency-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntent"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntent"}}}},"400":{"description":"validation_error: the body, query, or a header is invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_conflict: the Idempotency-Key was used with a different body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: at most 120 intent creations a minute per API key, within at most 600 requests a minute per API key on every endpoint (the sandbox included), and 20 failed authentications per 5 minutes per client address (a valid key from that address keeps working). Wait the number of seconds in Retry-After (also error.details.retry_after_s), then retry.","headers":{"retry-after":{"required":true,"description":"Seconds to wait before retrying","schema":{"type":"string","description":"Seconds to wait before retrying"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"listPaymentIntents","summary":"List payment intents, newest first (filter by order_reference to find an order's intent)","parameters":[{"in":"query","name":"order_reference","schema":{"type":"string","minLength":1,"maxLength":200}},{"in":"query","name":"status","schema":{"type":"string","enum":["awaiting_payment","ref_submitted","confirmed","amount_mismatch","expired","cancelled","manually_confirmed"]}},{"in":"query","name":"limit","schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"in":"query","name":"starting_after","schema":{"description":"Cursor: the last id of the previous page.","type":"string","pattern":"^pi_[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{20}$"},"description":"Cursor: the last id of the previous page."}],"responses":{"200":{"description":"A page of intents","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentList"}}}},"400":{"description":"validation_error: the body, query, or a header is invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: starting_after does not name an intent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: at most 600 requests a minute per API key on every endpoint (the sandbox included), and 20 failed authentications per 5 minutes per client address (a valid key from that address keeps working). Wait the number of seconds in Retry-After (also error.details.retry_after_s), then retry.","headers":{"retry-after":{"required":true,"description":"Seconds to wait before retrying","schema":{"type":"string","description":"Seconds to wait before retrying"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/payment_intents/{id}":{"get":{"operationId":"getPaymentIntent","summary":"Retrieve a payment intent","parameters":[{"in":"path","name":"id","schema":{"type":"string","pattern":"^pi_[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{20}$"},"required":true}],"responses":{"200":{"description":"The intent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntent"}}}},"400":{"description":"validation_error: the body, query, or a header is invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: at most 600 requests a minute per API key on every endpoint (the sandbox included), and 20 failed authentications per 5 minutes per client address (a valid key from that address keeps working). Wait the number of seconds in Retry-After (also error.details.retry_after_s), then retry.","headers":{"retry-after":{"required":true,"description":"Seconds to wait before retrying","schema":{"type":"string","description":"Seconds to wait before retrying"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/payment_intents/{id}/cancel":{"post":{"operationId":"cancelPaymentIntent","summary":"Cancel an open payment intent (cancelling a cancelled intent returns it unchanged)","parameters":[{"in":"path","name":"id","schema":{"type":"string","pattern":"^pi_[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{20}$"},"required":true}],"responses":{"200":{"description":"The cancelled intent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntent"}}}},"400":{"description":"validation_error: the body, query, or a header is invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"intent_terminal: the intent is confirmed, expired, or otherwise closed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: at most 600 requests a minute per API key on every endpoint (the sandbox included), and 20 failed authentications per 5 minutes per client address (a valid key from that address keeps working). Wait the number of seconds in Retry-After (also error.details.retry_after_s), then retry.","headers":{"retry-after":{"required":true,"description":"Seconds to wait before retrying","schema":{"type":"string","description":"Seconds to wait before retrying"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/payment_intents/{id}/reference":{"post":{"operationId":"submitPaymentIntentReference","summary":"Submit the customer's transfer reference (for platforms that collect it themselves)","description":"Validated like the hosted page: the store's bank format, at most 5 accepted submissions per intent. Matching runs in the background; poll the intent or wait for the webhook.","parameters":[{"in":"path","name":"id","schema":{"type":"string","pattern":"^pi_[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{20}$"},"required":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitReferenceRequest"}}}},"responses":{"200":{"description":"The intent, now ref_submitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntent"}}}},"400":{"description":"validation_error: the body, query, or a header is invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"intent_terminal or too_many_attempts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"invalid_reference: the reference does not have the bank's format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: at most 600 requests a minute per API key on every endpoint (the sandbox included), and 20 failed authentications per 5 minutes per client address (a valid key from that address keeps working). Wait the number of seconds in Retry-After (also error.details.retry_after_s), then retry.","headers":{"retry-after":{"required":true,"description":"Seconds to wait before retrying","schema":{"type":"string","description":"Seconds to wait before retrying"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/test/transactions":{"post":{"operationId":"simulateTestTransaction","summary":"Sandbox: simulate an incoming credit for test-mode intents (test keys only)","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTestTransactionRequest"}}}},"responses":{"201":{"description":"The simulated transaction; matching runs in the background","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transaction"}}}},"400":{"description":"validation_error: the body, query, or a header is invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: this endpoint requires a test key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: at most 600 requests a minute per API key on every endpoint (the sandbox included), and 20 failed authentications per 5 minutes per client address (a valid key from that address keeps working). Wait the number of seconds in Retry-After (also error.details.retry_after_s), then retry.","headers":{"retry-after":{"required":true,"description":"Seconds to wait before retrying","schema":{"type":"string","description":"Seconds to wait before retrying"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"CreatePaymentIntentRequest":{"type":"object","properties":{"amount_piasters":{"type":"integer","exclusiveMinimum":0,"maximum":1000000000,"description":"Integer piasters (1 EGP = 100 piasters).","example":35000},"currency":{"description":"Only EGP is supported.","type":"string","const":"EGP"},"order_reference":{"description":"Your order id; GET /payment_intents?order_reference= finds the intent.","example":"1001","type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":500},"customer_name":{"type":"string","minLength":1,"maxLength":200},"customer_phone":{"description":"The customer's Egyptian mobile number, only if you have it; never required. Stored as E.164 (+201XXXXXXXXX) and used only for matching: where the store's bank or wallet messages show the payer's number, a transfer from this number confirms the intent.","example":"01012345678","type":"string","maxLength":32},"return_url":{"description":"Where the hosted page sends the customer after confirmation.","type":"string","maxLength":2048,"format":"uri"},"expires_in_minutes":{"description":"Defaults to the store's intent lifetime (24 hours unless changed).","type":"integer","minimum":5,"maximum":43200},"metadata":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500},"description":"Up to 20 string values for your own use.","example":{"cart_id":"c_1001"}}},"required":["amount_piasters"],"additionalProperties":false},"SubmitReferenceRequest":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200,"description":"The transfer reference as the customer sees it; spaces and hyphens are ignored."}},"required":["reference"],"additionalProperties":false},"CreateTestTransactionRequest":{"type":"object","properties":{"amount_piasters":{"type":"integer","exclusiveMinimum":0,"maximum":1000000000,"description":"Integer piasters (1 EGP = 100 piasters).","example":35000},"reference":{"description":"The reference the simulated bank message carries.","example":"318204957761","type":"string","minLength":1,"maxLength":64},"counterparty_name":{"type":"string","minLength":1,"maxLength":200},"counterparty_phone":{"description":"The payer's phone the simulated wallet message shows.","example":"01012345678","type":"string","maxLength":32},"account_last4":{"description":"The receiving account's last digits the simulated message shows.","example":"1234","type":"string","pattern":"^[0-9]{3,4}$"},"occurred_at":{"description":"Defaults to now.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","example":"2026-10-02T12:00:00.000Z"}},"required":["amount_piasters"],"additionalProperties":false},"PaymentIntent":{"type":"object","properties":{"id":{"type":"string","pattern":"^pi_[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{20}$","example":"pi_7K3M9PQ2XW4H8RTB6ZC1"},"object":{"type":"string","const":"payment_intent"},"store_id":{"type":"string","pattern":"^str_[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{20}$"},"mode":{"type":"string","enum":["live","test"]},"status":{"type":"string","enum":["awaiting_payment","ref_submitted","confirmed","amount_mismatch","expired","cancelled","manually_confirmed"],"description":"awaiting_payment and ref_submitted are open; an open intent past expires_at is reported as expired."},"amount_piasters":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Requested amount."},"charged_amount_piasters":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What the customer is asked to pay: the amount plus a fingerprint of 1-99 piasters, if any."},"fingerprinted":{"type":"boolean"},"currency":{"type":"string","const":"EGP"},"order_reference":{"type":["string","null"]},"description":{"type":["string","null"]},"customer_name":{"type":["string","null"]},"customer_phone":{"type":["string","null"]},"customer_reference":{"description":"The reference the customer submitted (normalized).","type":["string","null"]},"reference_submitted_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","example":"2026-10-02T12:00:00.000Z"},{"type":"null"}]},"paid_claimed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","example":"2026-10-02T12:00:00.000Z"},{"type":"null"}]},"amount_mismatch_direction":{"anyOf":[{"type":"string","enum":["under","over"]},{"type":"null"}]},"received_amount_piasters":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Sum of the matched transactions, or null when none is matched."},"matches":{"type":"array","items":{"$ref":"#/components/schemas/PaymentIntentMatch"}},"checkout_url":{"type":"string","format":"uri","description":"The hosted payment page to send the customer to."},"return_url":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"created_via":{"type":"string","enum":["api","dashboard","link","product"]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","example":"2026-10-02T12:00:00.000Z"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","example":"2026-10-02T12:00:00.000Z"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","example":"2026-10-02T12:00:00.000Z"},{"type":"null"}]},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","example":"2026-10-02T12:00:00.000Z"},{"type":"null"}]},"expired_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","example":"2026-10-02T12:00:00.000Z"},{"type":"null"}]}},"required":["id","object","store_id","mode","status","amount_piasters","charged_amount_piasters","fingerprinted","currency","order_reference","description","customer_name","customer_phone","customer_reference","reference_submitted_at","paid_claimed_at","amount_mismatch_direction","received_amount_piasters","matches","checkout_url","return_url","metadata","created_via","created_at","expires_at","confirmed_at","cancelled_at","expired_at"],"additionalProperties":false},"PaymentIntentMatch":{"type":"object","properties":{"transaction_id":{"type":"string","pattern":"^txn_[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{20}$"},"method":{"type":"string","enum":["reference","ipa","phone","name","claim","fingerprint","amount","suggested","manual"]},"amount_piasters":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"matched_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","example":"2026-10-02T12:00:00.000Z"}},"required":["transaction_id","method","amount_piasters","matched_at"],"additionalProperties":false},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"validation_error"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"PaymentIntentList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PaymentIntent"}},"has_more":{"type":"boolean"}},"required":["object","data","has_more"],"additionalProperties":false},"Transaction":{"type":"object","properties":{"id":{"type":"string","pattern":"^txn_[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{20}$"},"object":{"type":"string","const":"transaction"},"store_id":{"type":"string","pattern":"^str_[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{20}$"},"mode":{"type":"string","enum":["live","test"]},"direction":{"type":"string","enum":["credit","debit"]},"status":{"type":"string","enum":["unmatched","matched","ignored","duplicate"]},"amount_piasters":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","const":"EGP"},"reference":{"type":["string","null"]},"counterparty_name":{"type":["string","null"]},"occurred_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","example":"2026-10-02T12:00:00.000Z"},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","example":"2026-10-02T12:00:00.000Z"}},"required":["id","object","store_id","mode","direction","status","amount_piasters","currency","reference","counterparty_name","occurred_at","created_at"],"additionalProperties":false}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A store API key: im_live_... or im_test_..."}}}}