{"items":[{"type":"link","label":"Dime Partner API v1","link":"/apis/v1/dime-v1","routeSlug":"/apis/v1/dime-v1","content":{"contentType":"overview","meta":{"name":"Dime Partner API v1"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"dime-v1.json","url":"/_bundle/apis/v1/dime-v1.json?download"},{"kind":"download","label":"dime-v1.yaml","url":"/_bundle/apis/v1/dime-v1.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"externallink","title":"URL","titleTranslationKey":"info.contact.url","label":"https://dimepay.net","url":"https://dimepay.net"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Dime Partner API v1","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":":::warning Deprecation planned"},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"v1 will be deprecated."},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" It remains fully supported for now, but all new"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"integrations should use "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"href":"/apis/v2/dime-v2"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"the v2 API"},"children":[],"type":"text"}],"type":"link"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", and existing"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"integrations should plan to migrate."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":":::"},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The original Dime partner API."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"v2 takes plain JSON instead of a signed payload, returns resources without"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"a wrapper, and reports every failure in one consistent error shape. See"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Moving from v1"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" on the API reference home page for the differences."},"children":[],"type":"text"}],"type":"paragraph"}]}],"sectionId":"/"}],"sectionId":"/"},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{"level":2,"id":"section/authentication"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Authentication"},"children":[],"type":"text"}],"type":"heading"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Two credentials work together:"},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Your "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"client key"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" goes in the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"client_key"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" header and identifies you."},"children":[],"type":"text"}],"type":"item"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Your "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"secret key"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" signs the request parameters."},"children":[],"type":"text"}],"type":"item"}],"type":"list"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Sign the parameters as a JWT and send them as "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":":"},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"content":"{\n  \"lang\": \"en\",\n  \"data\": \"<JWT signed with your secret key>\"\n}\n","language":"json"},"children":[{"$$mdtype":"Node","attributes":{"content":"{\n  \"lang\": \"en\",\n  \"data\": \"<JWT signed with your secret key>\"\n}\n"},"children":[],"type":"text"}],"type":"fence"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Two endpoints are exceptions and take plain JSON: "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"/donate-orders"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" and"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"/card-request/open-verify"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]}],"sectionId":"/section/authentication"},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{"level":2,"id":"section/responses"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Responses"},"children":[],"type":"text"}],"type":"heading"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Every response is wrapped:"},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{"content":"{\n  \"statusCode\": 200,\n  \"headers\": { \"Access-Control-Allow-Origin\": \"*\" },\n  \"body\": {\n    \"message\": \"Successful created api order request\",\n    \"response\": { \"order_url\": \"https://pay.dimepay.app/e-order/...\" }\n  }\n}\n","language":"json"},"children":[{"$$mdtype":"Node","attributes":{"content":"{\n  \"statusCode\": 200,\n  \"headers\": { \"Access-Control-Allow-Origin\": \"*\" },\n  \"body\": {\n    \"message\": \"Successful created api order request\",\n    \"response\": { \"order_url\": \"https://pay.dimepay.app/e-order/...\" }\n  }\n}\n"},"children":[],"type":"text"}],"type":"fence"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"statusCode"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" repeats the HTTP status. The payload is under "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.response"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]}],"sectionId":"/section/responses"},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{"level":2,"id":"section/errors"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Errors"},"children":[],"type":"text"}],"type":"heading"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"A validation failure returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" as an "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"array"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" listing every"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"rule that failed, not just the first."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"A bad or missing signature returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. This is documented as"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"the API behaves today."},"children":[],"type":"text"}],"type":"paragraph"}]}],"sectionId":"/section/errors"}]}]}},{"type":"link","label":"Authentication","link":"/apis/v1/dime-v1/section/authentication","routeSlug":"/apis/v1/dime-v1/section/authentication","content":null},{"type":"link","label":"Responses","link":"/apis/v1/dime-v1/section/responses","routeSlug":"/apis/v1/dime-v1/section/responses","content":null},{"type":"link","label":"Errors","link":"/apis/v1/dime-v1/section/errors","routeSlug":"/apis/v1/dime-v1/section/errors","content":null},{"type":"group","label":"Orders","link":"/apis/v1/dime-v1/orders","routeSlug":"/apis/v1/dime-v1/orders","items":[{"label":"Create an order","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/orders/createapiorder","routeSlug":"/apis/v1/dime-v1/orders/createapiorder","metadata":{"seo":{"title":"Create an order","description":"Returns order_url, the hosted page where the customer pays."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createApiOrder","name":"Create an order","isWebhook":false,"pointer":"/paths/~1orders/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create an order","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"order_url"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", the hosted page where the customer pays."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Sign the parameters below with your secret key and send the result as"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest","exampleIds":["paths/~1orders/post/requestBody/content/application~1json/examples/signed"]}},"schemaId":"components/schemas/SignedRequest","exampleIds":["paths/~1orders/post/requestBody/content/application~1json/examples/signed"],"pointer":"/paths/~1orders/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/orders","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SignedRequest","exampleIds":["paths/~1orders/post/requestBody/content/application~1json/examples/signed"]}},"responseCodes":["200","400","500"],"pointer":"/orders","href":"orders/createapiorder","openApiOperationId":"createApiOrder","summary":"Create an order"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/SignedRequest","exampleIds":["paths/~1orders/post/requestBody/content/application~1json/examples/signed"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest","exampleIds":["paths/~1orders/post/requestBody/content/application~1json/examples/signed"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The order was created.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders/post/responses/200/content/application~1json/examples/created"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders/post/responses/200/content/application~1json/examples/created"]},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders/post/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders/post/responses/400/content/application~1json/examples/missingFields"]},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature could not be verified, or the key was missing."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Note this returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. The behaviour is documented as it"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"is, rather than as it ought to be."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders/post/responses/500/content/application~1json/examples/badPayload"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders/post/responses/500/content/application~1json/examples/badPayload"]}],"pointer":"/paths/~1orders/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders/post/responses/200/content/application~1json/examples/created"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders/post/responses/200/content/application~1json/examples/created"]}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders/post/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders/post/responses/400/content/application~1json/examples/missingFields"]}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders/post/responses/500/content/application~1json/examples/badPayload"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders/post/responses/500/content/application~1json/examples/badPayload"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/orders/createapiorder"}],"panels":[]}]},"httpPath":"/orders"},{"label":"Retrieve an order","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/orders/getapiorder","routeSlug":"/apis/v1/dime-v1/orders/getapiorder","metadata":{"seo":{"title":"Retrieve an order","description":"Reads an order."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getApiOrder","name":"Retrieve an order","isWebhook":false,"pointer":"/paths/~1orders~1{token}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Retrieve an order","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Reads an order."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The path segment is "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"not"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" the plain token: sign the token string with"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"your secret key and put the resulting JWT in the path. An unsigned"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"token fails with "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"jwt malformed"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"token","in":"path","schemaId":"schema_0","description":"The order's token, signed as a JWT with your secret key.","required":true,"example":"eyJhbGciOiJIUzI1NiJ9.b2p1Q2NWN3ZlVTlIWjBWZA.signature"}],"pointer":"/paths/~1orders~1{token}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/orders/{token}","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[{"name":"token","in":"path","required":true,"example":"eyJhbGciOiJIUzI1NiJ9.b2p1Q2NWN3ZlVTlIWjBWZA.signature","schemaId":"schema_0"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"responseCodes":["200","500"],"pointer":"/orders/{token}","href":"orders/getapiorder","openApiOperationId":"getApiOrder","summary":"Retrieve an order"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The order.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders~1{token}/get/responses/200/content/application~1json/examples/found"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders~1{token}/get/responses/200/content/application~1json/examples/found"]},{"code":"500","description":"The token was not a valid signed payload, or no such order exists.\n","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders~1{token}/get/responses/500/content/application~1json/examples/malformed"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders~1{token}/get/responses/500/content/application~1json/examples/malformed"]}],"pointer":"/paths/~1orders~1{token}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders~1{token}/get/responses/200/content/application~1json/examples/found"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders~1{token}/get/responses/200/content/application~1json/examples/found"]}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders~1{token}/get/responses/500/content/application~1json/examples/malformed"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1orders~1{token}/get/responses/500/content/application~1json/examples/malformed"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/orders/getapiorder"}],"panels":[]}]},"httpPath":"/orders/{token}"},{"label":"Create a donation order","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/orders/createdonationorder","routeSlug":"/apis/v1/dime-v1/orders/createdonationorder","metadata":{"seo":{"title":"Create a donation order","description":"A donation-flavoured order. Unlike /orders, this route takes theparameters as plain JSON — it carries no signature check."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createDonationOrder","name":"Create a donation order","isWebhook":false,"pointer":"/paths/~1donate-orders/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create a donation order","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"A donation-flavoured order. Unlike "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"/orders"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", this route takes the"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"parameters as plain JSON — it carries no signature check."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateOrderParams"}},"schemaId":"components/schemas/CreateOrderParams","pointer":"/paths/~1donate-orders/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/donate-orders","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/CreateOrderParams"}},"responseCodes":["200","400"],"pointer":"/donate-orders","href":"orders/createdonationorder","openApiOperationId":"createDonationOrder","summary":"Create a donation order"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/CreateOrderParams","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateOrderParams"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The donation order was created.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1donate-orders/post/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1donate-orders/post/responses/400/content/application~1json/examples/missingFields"]}],"pointer":"/paths/~1donate-orders/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1donate-orders/post/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1donate-orders/post/responses/400/content/application~1json/examples/missingFields"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/orders/createdonationorder"}],"panels":[]}]},"httpPath":"/donate-orders"}],"content":{"contentType":"group","meta":{"name":"Orders"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Orders","showPageActions":true},{"nodeType":"markdoc","content":"Take a payment through a hosted checkout page."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/orders","summary":"Create an order","prefix":{"name":"post","color":"post"},"badges":[],"link":"/orders/createapiorder","deprecated":false},{"title":"/orders/{token}","summary":"Retrieve an order","prefix":{"name":"get","color":"get"},"badges":[],"link":"/orders/getapiorder","deprecated":false},{"title":"/donate-orders","summary":"Create a donation order","prefix":{"name":"post","color":"post"},"badges":[],"link":"/orders/createdonationorder","deprecated":false}]}]}]}]}},{"type":"group","label":"Card Requests","link":"/apis/v1/dime-v1/card-requests","routeSlug":"/apis/v1/dime-v1/card-requests","items":[{"label":"Open a card request","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/card-requests/createapicard","routeSlug":"/apis/v1/dime-v1/card-requests/createapicard","metadata":{"seo":{"title":"Open a card request","description":"Returns card_url, the hosted page for card entry."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createApiCard","name":"Open a card request","isWebhook":false,"pointer":"/paths/~1card-request/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Open a card request","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"card_url"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", the hosted page for card entry."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"schemaId":"components/schemas/SignedRequest","pointer":"/paths/~1card-request/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/card-request","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"responseCodes":["201","400","500"],"pointer":"/card-request","href":"card-requests/createapicard","openApiOperationId":"createApiCard","summary":"Open a card request"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/SignedRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"201","description":"The card request was opened.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request/post/responses/201/content/application~1json/examples/created"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request/post/responses/201/content/application~1json/examples/created"]},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request/post/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request/post/responses/400/content/application~1json/examples/missingFields"]},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature could not be verified, or the key was missing."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Note this returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. The behaviour is documented as it"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"is, rather than as it ought to be."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request/post/responses/500/content/application~1json/examples/badPayload"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request/post/responses/500/content/application~1json/examples/badPayload"]}],"pointer":"/paths/~1card-request/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"201","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request/post/responses/201/content/application~1json/examples/created"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request/post/responses/201/content/application~1json/examples/created"]}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request/post/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request/post/responses/400/content/application~1json/examples/missingFields"]}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request/post/responses/500/content/application~1json/examples/badPayload"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request/post/responses/500/content/application~1json/examples/badPayload"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/card-requests/createapicard"}],"panels":[]}]},"httpPath":"/card-request"},{"label":"Verify a card request","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/card-requests/verifycard","routeSlug":"/apis/v1/dime-v1/card-requests/verifycard","metadata":{"seo":{"title":"Verify a card request","description":"Confirms the customer controls the card by matching the amount charged to it. Signed, so only the merchant can call it."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"verifyCard","name":"Verify a card request","isWebhook":false,"pointer":"/paths/~1card-request~1verify/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Verify a card request","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Confirms the customer controls the card by matching the amount charged\nto it. Signed, so only the merchant can call it.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"schemaId":"components/schemas/SignedRequest","pointer":"/paths/~1card-request~1verify/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/card-request/verify","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"responseCodes":["200","400","500"],"pointer":"/card-request/verify","href":"card-requests/verifycard","openApiOperationId":"verifyCard","summary":"Verify a card request"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/SignedRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Verified.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1verify/put/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1verify/put/responses/400/content/application~1json/examples/missingFields"]},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature could not be verified, or the key was missing."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Note this returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. The behaviour is documented as it"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"is, rather than as it ought to be."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1verify/put/responses/500/content/application~1json/examples/badPayload"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1verify/put/responses/500/content/application~1json/examples/badPayload"]}],"pointer":"/paths/~1card-request~1verify/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1verify/put/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1verify/put/responses/400/content/application~1json/examples/missingFields"]}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1verify/put/responses/500/content/application~1json/examples/badPayload"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1verify/put/responses/500/content/application~1json/examples/badPayload"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/card-requests/verifycard"}],"panels":[]}]},"httpPath":"/card-request/verify"},{"label":"Verify a card request without a signature","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/card-requests/openverifycard","routeSlug":"/apis/v1/dime-v1/card-requests/openverifycard","metadata":{"seo":{"title":"Verify a card request without a signature","description":"The same verification as /card-request/verify, but it carries nosignature check — it exists for the hosted page, which holds no secretkey."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"openVerifyCard","name":"Verify a card request without a signature","isWebhook":false,"pointer":"/paths/~1card-request~1open-verify/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Verify a card request without a signature","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The same verification as "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"/card-request/verify"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", but it carries no"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signature check — it exists for the hosted page, which holds no secret"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"key."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Parameters are sent as plain JSON rather than inside "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/VerifyParams"}},"schemaId":"components/schemas/VerifyParams","pointer":"/paths/~1card-request~1open-verify/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/card-request/open-verify","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/VerifyParams"}},"responseCodes":["200","400"],"pointer":"/card-request/open-verify","href":"card-requests/openverifycard","openApiOperationId":"openVerifyCard","summary":"Verify a card request without a signature"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/VerifyParams","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/VerifyParams"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Verified.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1open-verify/put/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1open-verify/put/responses/400/content/application~1json/examples/missingFields"]}],"pointer":"/paths/~1card-request~1open-verify/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1open-verify/put/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1open-verify/put/responses/400/content/application~1json/examples/missingFields"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/card-requests/openverifycard"}],"panels":[]}]},"httpPath":"/card-request/open-verify"},{"label":"Retrieve a card request","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/card-requests/getapicardrequest","routeSlug":"/apis/v1/dime-v1/card-requests/getapicardrequest","metadata":{"seo":{"title":"Retrieve a card request","description":"Reads the request's state. Never returns the card itself."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getApiCardRequest","name":"Retrieve a card request","isWebhook":false,"pointer":"/paths/~1card-request~1{token}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Retrieve a card request","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Reads the request's state. Never returns the card itself."},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"token","in":"path","schemaId":"schema_0","description":"The card request token.","required":true,"example":"cr_URQhkAkLE-IgX"}],"pointer":"/paths/~1card-request~1{token}/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"merchant_id","in":"query","schemaId":"schema_0","description":"Your merchant token.","required":true}],"pointer":"/paths/~1card-request~1{token}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/card-request/{token}","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[{"name":"token","in":"path","required":true,"example":"cr_URQhkAkLE-IgX","schemaId":"schema_0"}],"query":[{"name":"merchant_id","in":"query","required":true,"schemaId":"schema_0"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"responseCodes":["200","500"],"pointer":"/card-request/{token}","href":"card-requests/getapicardrequest","openApiOperationId":"getApiCardRequest","summary":"Retrieve a card request"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The card request.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature failed, or no such card request exists. A missing"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"record returns 500 rather than 404 — documented as it behaves."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1{token}/get/responses/500/content/application~1json/examples/notFound"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1{token}/get/responses/500/content/application~1json/examples/notFound"]}],"pointer":"/paths/~1card-request~1{token}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1{token}/get/responses/500/content/application~1json/examples/notFound"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1{token}/get/responses/500/content/application~1json/examples/notFound"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/card-requests/getapicardrequest"}],"panels":[]}]},"httpPath":"/card-request/{token}"},{"label":"Save a captured card","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/card-requests/saveapicard","routeSlug":"/apis/v1/dime-v1/card-requests/saveapicard","metadata":{"seo":{"title":"Save a captured card","description":"Called by the hosted page once the customer submits their card. Carries no signature check, since the page holds no secret key."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"saveApiCard","name":"Save a captured card","isWebhook":false,"pointer":"/paths/~1card-request~1{token}/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Save a captured card","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Called by the hosted page once the customer submits their card. Carries\nno signature check, since the page holds no secret key.\n"},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"token","in":"path","schemaId":"schema_0","description":"The card request token.","required":true,"example":"cr_URQhkAkLE-IgX"}],"pointer":"/paths/~1card-request~1{token}/put/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_1"}},"schemaId":"schema_1","pointer":"/paths/~1card-request~1{token}/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/card-request/{token}","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[{"name":"token","in":"path","required":true,"example":"cr_URQhkAkLE-IgX","schemaId":"schema_0"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"schema_1"}},"responseCodes":["200","400"],"pointer":"/card-request/{token}","href":"card-requests/saveapicard","openApiOperationId":"saveApiCard","summary":"Save a captured card"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"schema_1","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_1"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The card was saved.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1{token}/put/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1{token}/put/responses/400/content/application~1json/examples/missingFields"]}],"pointer":"/paths/~1card-request~1{token}/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1{token}/put/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1card-request~1{token}/put/responses/400/content/application~1json/examples/missingFields"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/card-requests/saveapicard"}],"panels":[]}]},"httpPath":"/card-request/{token}"},{"label":"Retrieve the stored card","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/card-requests/getapicard","routeSlug":"/apis/v1/dime-v1/card-requests/getapicard","metadata":{"seo":{"title":"Retrieve the stored card","description":"Returns the card token to use when taking payments. Fails until the request has been verified."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getApiCard","name":"Retrieve the stored card","isWebhook":false,"pointer":"/paths/~1cards~1{token}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Retrieve the stored card","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Returns the card token to use when taking payments. Fails until the\nrequest has been verified.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"token","in":"path","schemaId":"schema_0","description":"The card request token.","required":true,"example":"cr_URQhkAkLE-IgX"}],"pointer":"/paths/~1cards~1{token}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/cards/{token}","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[{"name":"token","in":"path","required":true,"example":"cr_URQhkAkLE-IgX","schemaId":"schema_0"}],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"responseCodes":["200","400","500"],"pointer":"/cards/{token}","href":"card-requests/getapicard","openApiOperationId":"getApiCard","summary":"Retrieve the stored card"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The stored card.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":"The card request has not been verified.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature could not be verified, or the key was missing."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Note this returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. The behaviour is documented as it"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"is, rather than as it ought to be."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1cards~1{token}/get/responses/500/content/application~1json/examples/badPayload"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1cards~1{token}/get/responses/500/content/application~1json/examples/badPayload"]}],"pointer":"/paths/~1cards~1{token}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1cards~1{token}/get/responses/500/content/application~1json/examples/badPayload"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1cards~1{token}/get/responses/500/content/application~1json/examples/badPayload"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/card-requests/getapicard"}],"panels":[]}]},"httpPath":"/cards/{token}"}],"content":{"contentType":"group","meta":{"name":"Card Requests"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Card Requests","showPageActions":true},{"nodeType":"markdoc","content":"Capture and store a customer's card."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/card-request","summary":"Open a card request","prefix":{"name":"post","color":"post"},"badges":[],"link":"/card-requests/createapicard","deprecated":false},{"title":"/card-request/verify","summary":"Verify a card request","prefix":{"name":"put","color":"put"},"badges":[],"link":"/card-requests/verifycard","deprecated":false},{"title":"/card-request/open-verify","summary":"Verify a card request without a signature","prefix":{"name":"put","color":"put"},"badges":[],"link":"/card-requests/openverifycard","deprecated":false},{"title":"/card-request/{token}","summary":"Retrieve a card request","prefix":{"name":"get","color":"get"},"badges":[],"link":"/card-requests/getapicardrequest","deprecated":false},{"title":"/card-request/{token}","summary":"Save a captured card","prefix":{"name":"put","color":"put"},"badges":[],"link":"/card-requests/saveapicard","deprecated":false},{"title":"/cards/{token}","summary":"Retrieve the stored card","prefix":{"name":"get","color":"get"},"badges":[],"link":"/card-requests/getapicard","deprecated":false}]}]}]}]}},{"type":"group","label":"Payments","link":"/apis/v1/dime-v1/payments","routeSlug":"/apis/v1/dime-v1/payments","items":[{"label":"Charge a card","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/payments/paymentsale","routeSlug":"/apis/v1/dime-v1/payments/paymentsale","metadata":{"seo":{"title":"Charge a card","description":"Authorizes and captures in one step."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"paymentSale","name":"Charge a card","isWebhook":false,"pointer":"/paths/~1payments~1sale/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Charge a card","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Authorizes and captures in one step."},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"schemaId":"components/schemas/SignedRequest","pointer":"/paths/~1payments~1sale/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/payments/sale","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"responseCodes":["200","400","500"],"pointer":"/payments/sale","href":"payments/paymentsale","openApiOperationId":"paymentSale","summary":"Charge a card"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/SignedRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The resulting transaction, inside the v1 envelope.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1sale/post/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1sale/post/responses/400/content/application~1json/examples/missingFields"]},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature could not be verified, or the key was missing."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Note this returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. The behaviour is documented as it"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"is, rather than as it ought to be."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1sale/post/responses/500/content/application~1json/examples/badPayload"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1sale/post/responses/500/content/application~1json/examples/badPayload"]}],"pointer":"/paths/~1payments~1sale/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1sale/post/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1sale/post/responses/400/content/application~1json/examples/missingFields"]}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1sale/post/responses/500/content/application~1json/examples/badPayload"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1sale/post/responses/500/content/application~1json/examples/badPayload"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/payments/paymentsale"}],"panels":[]}]},"httpPath":"/payments/sale"},{"label":"Authorize a card","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/payments/paymentauthentication","routeSlug":"/apis/v1/dime-v1/payments/paymentauthentication","metadata":{"seo":{"title":"Authorize a card","description":"Holds the funds without taking them."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"paymentAuthentication","name":"Authorize a card","isWebhook":false,"pointer":"/paths/~1payments~1auth/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Authorize a card","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Holds the funds without taking them."},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"schemaId":"components/schemas/SignedRequest","pointer":"/paths/~1payments~1auth/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/payments/auth","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"responseCodes":["200","400","500"],"pointer":"/payments/auth","href":"payments/paymentauthentication","openApiOperationId":"paymentAuthentication","summary":"Authorize a card"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/SignedRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The resulting transaction, inside the v1 envelope.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1auth/post/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1auth/post/responses/400/content/application~1json/examples/missingFields"]},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature could not be verified, or the key was missing."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Note this returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. The behaviour is documented as it"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"is, rather than as it ought to be."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1auth/post/responses/500/content/application~1json/examples/badPayload"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1auth/post/responses/500/content/application~1json/examples/badPayload"]}],"pointer":"/paths/~1payments~1auth/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1auth/post/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1auth/post/responses/400/content/application~1json/examples/missingFields"]}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1auth/post/responses/500/content/application~1json/examples/badPayload"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1auth/post/responses/500/content/application~1json/examples/badPayload"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/payments/paymentauthentication"}],"panels":[]}]},"httpPath":"/payments/auth"},{"label":"Capture an authorization","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/payments/paymentcapture","routeSlug":"/apis/v1/dime-v1/payments/paymentcapture","metadata":{"seo":{"title":"Capture an authorization","description":"Capture an authorization"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"paymentCapture","name":"Capture an authorization","isWebhook":false,"pointer":"/paths/~1payments~1capture/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Capture an authorization","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"schemaId":"components/schemas/SignedRequest","pointer":"/paths/~1payments~1capture/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/payments/capture","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"responseCodes":["200","400","500"],"pointer":"/payments/capture","href":"payments/paymentcapture","openApiOperationId":"paymentCapture","summary":"Capture an authorization"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/SignedRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The resulting transaction, inside the v1 envelope.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1capture/put/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1capture/put/responses/400/content/application~1json/examples/missingFields"]},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature could not be verified, or the key was missing."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Note this returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. The behaviour is documented as it"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"is, rather than as it ought to be."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1capture/put/responses/500/content/application~1json/examples/badPayload"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1capture/put/responses/500/content/application~1json/examples/badPayload"]}],"pointer":"/paths/~1payments~1capture/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1capture/put/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1capture/put/responses/400/content/application~1json/examples/missingFields"]}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1capture/put/responses/500/content/application~1json/examples/badPayload"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1capture/put/responses/500/content/application~1json/examples/badPayload"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/payments/paymentcapture"}],"panels":[]}]},"httpPath":"/payments/capture"},{"label":"Void a transaction","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/payments/paymentvoid","routeSlug":"/apis/v1/dime-v1/payments/paymentvoid","metadata":{"seo":{"title":"Void a transaction","description":"Releases a hold before settlement. Use refund afterwards."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"paymentVoid","name":"Void a transaction","isWebhook":false,"pointer":"/paths/~1payments~1void/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Void a transaction","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Releases a hold before settlement. Use refund afterwards."},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"schemaId":"components/schemas/SignedRequest","pointer":"/paths/~1payments~1void/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/payments/void","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"responseCodes":["200","400","500"],"pointer":"/payments/void","href":"payments/paymentvoid","openApiOperationId":"paymentVoid","summary":"Void a transaction"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/SignedRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The resulting transaction, inside the v1 envelope.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1void/put/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1void/put/responses/400/content/application~1json/examples/missingFields"]},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature could not be verified, or the key was missing."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Note this returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. The behaviour is documented as it"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"is, rather than as it ought to be."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1void/put/responses/500/content/application~1json/examples/badPayload"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1void/put/responses/500/content/application~1json/examples/badPayload"]}],"pointer":"/paths/~1payments~1void/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1void/put/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1void/put/responses/400/content/application~1json/examples/missingFields"]}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1void/put/responses/500/content/application~1json/examples/badPayload"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1void/put/responses/500/content/application~1json/examples/badPayload"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/payments/paymentvoid"}],"panels":[]}]},"httpPath":"/payments/void"},{"label":"Refund a transaction","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/payments/paymentrefund","routeSlug":"/apis/v1/dime-v1/payments/paymentrefund","metadata":{"seo":{"title":"Refund a transaction","description":"Omit amount inside data for a full refund."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"paymentRefund","name":"Refund a transaction","isWebhook":false,"pointer":"/paths/~1payments~1refund/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Refund a transaction","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Omit "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"amount"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" inside "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" for a full refund."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"schemaId":"components/schemas/SignedRequest","pointer":"/paths/~1payments~1refund/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/payments/refund","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"responseCodes":["200","400","500"],"pointer":"/payments/refund","href":"payments/paymentrefund","openApiOperationId":"paymentRefund","summary":"Refund a transaction"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/SignedRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The resulting transaction, inside the v1 envelope.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1refund/put/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1refund/put/responses/400/content/application~1json/examples/missingFields"]},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature could not be verified, or the key was missing."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Note this returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. The behaviour is documented as it"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"is, rather than as it ought to be."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1refund/put/responses/500/content/application~1json/examples/badPayload"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1refund/put/responses/500/content/application~1json/examples/badPayload"]}],"pointer":"/paths/~1payments~1refund/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1refund/put/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1refund/put/responses/400/content/application~1json/examples/missingFields"]}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1refund/put/responses/500/content/application~1json/examples/badPayload"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1refund/put/responses/500/content/application~1json/examples/badPayload"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/payments/paymentrefund"}],"panels":[]}]},"httpPath":"/payments/refund"},{"label":"Create a hosted checkout","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/payments/createhostedpage","routeSlug":"/apis/v1/dime-v1/payments/createhostedpage","metadata":{"seo":{"title":"Create a hosted checkout","description":"An alias of POST /orders, behind the same handler. Returns an orderwith an order_url."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createHostedPage","name":"Create a hosted checkout","isWebhook":false,"pointer":"/paths/~1payments~1hosted-page/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create a hosted checkout","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"An alias of "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"POST /orders"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", behind the same handler. Returns an order"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"with an "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"order_url"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"schemaId":"components/schemas/SignedRequest","pointer":"/paths/~1payments~1hosted-page/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/payments/hosted-page","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"responseCodes":["200","400","500"],"pointer":"/payments/hosted-page","href":"payments/createhostedpage","openApiOperationId":"createHostedPage","summary":"Create a hosted checkout"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/SignedRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The order was created.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1hosted-page/post/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1hosted-page/post/responses/400/content/application~1json/examples/missingFields"]},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature could not be verified, or the key was missing."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Note this returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. The behaviour is documented as it"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"is, rather than as it ought to be."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1hosted-page/post/responses/500/content/application~1json/examples/badPayload"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1hosted-page/post/responses/500/content/application~1json/examples/badPayload"]}],"pointer":"/paths/~1payments~1hosted-page/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1hosted-page/post/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1hosted-page/post/responses/400/content/application~1json/examples/missingFields"]}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1hosted-page/post/responses/500/content/application~1json/examples/badPayload"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payments~1hosted-page/post/responses/500/content/application~1json/examples/badPayload"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/payments/createhostedpage"}],"panels":[]}]},"httpPath":"/payments/hosted-page"}],"content":{"contentType":"group","meta":{"name":"Payments"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Payments","showPageActions":true},{"nodeType":"markdoc","content":"Charge a stored card, then capture, void, or refund."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/payments/sale","summary":"Charge a card","prefix":{"name":"post","color":"post"},"badges":[],"link":"/payments/paymentsale","deprecated":false},{"title":"/payments/auth","summary":"Authorize a card","prefix":{"name":"post","color":"post"},"badges":[],"link":"/payments/paymentauthentication","deprecated":false},{"title":"/payments/capture","summary":"Capture an authorization","prefix":{"name":"put","color":"put"},"badges":[],"link":"/payments/paymentcapture","deprecated":false},{"title":"/payments/void","summary":"Void a transaction","prefix":{"name":"put","color":"put"},"badges":[],"link":"/payments/paymentvoid","deprecated":false},{"title":"/payments/refund","summary":"Refund a transaction","prefix":{"name":"put","color":"put"},"badges":[],"link":"/payments/paymentrefund","deprecated":false},{"title":"/payments/hosted-page","summary":"Create a hosted checkout","prefix":{"name":"post","color":"post"},"badges":[],"link":"/payments/createhostedpage","deprecated":false}]}]}]}]}},{"type":"group","label":"Invoices","link":"/apis/v1/dime-v1/invoices","routeSlug":"/apis/v1/dime-v1/invoices","items":[{"label":"Create an invoice","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/invoices/createapiinvoice","routeSlug":"/apis/v1/dime-v1/invoices/createapiinvoice","metadata":{"seo":{"title":"Create an invoice","description":"The customer must already exist under your merchant, and any product referenced must be in your own catalog."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createApiInvoice","name":"Create an invoice","isWebhook":false,"pointer":"/paths/~1invoices/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create an invoice","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"The customer must already exist under your merchant, and any product\nreferenced must be in your own catalog.\n"},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"schemaId":"components/schemas/SignedRequest","pointer":"/paths/~1invoices/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/invoices","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"responseCodes":["200","400","404","500"],"pointer":"/invoices","href":"invoices/createapiinvoice","openApiOperationId":"createApiInvoice","summary":"Create an invoice"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/SignedRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The invoice was created.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1invoices/post/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1invoices/post/responses/400/content/application~1json/examples/missingFields"]},{"code":"404","description":"The customer or a referenced product does not exist for you.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature could not be verified, or the key was missing."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Note this returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. The behaviour is documented as it"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"is, rather than as it ought to be."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1invoices/post/responses/500/content/application~1json/examples/badPayload"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1invoices/post/responses/500/content/application~1json/examples/badPayload"]}],"pointer":"/paths/~1invoices/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1invoices/post/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1invoices/post/responses/400/content/application~1json/examples/missingFields"]}}},{"code":"404","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1invoices/post/responses/500/content/application~1json/examples/badPayload"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1invoices/post/responses/500/content/application~1json/examples/badPayload"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/invoices/createapiinvoice"}],"panels":[]}]},"httpPath":"/invoices"}],"content":{"contentType":"group","meta":{"name":"Invoices"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Invoices","showPageActions":true},{"nodeType":"markdoc","content":"Bill a customer."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/invoices","summary":"Create an invoice","prefix":{"name":"post","color":"post"},"badges":[],"link":"/invoices/createapiinvoice","deprecated":false}]}]}]}]}},{"type":"group","label":"Payment Links","link":"/apis/v1/dime-v1/payment-links","routeSlug":"/apis/v1/dime-v1/payment-links","items":[{"label":"Create a payment link","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/payment-links/createapipaymentlink","routeSlug":"/apis/v1/dime-v1/payment-links/createapipaymentlink","metadata":{"seo":{"title":"Create a payment link","description":"A link is OPEN (the payer names the amount), STATIC (a fixedamount), or PRODUCT (priced from your catalog)."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createApiPaymentLink","name":"Create a payment link","isWebhook":false,"pointer":"/paths/~1payment-links/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create a payment link","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"A link is "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"OPEN"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" (the payer names the amount), "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"STATIC"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" (a fixed"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"amount), or "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"PRODUCT"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" (priced from your catalog)."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"schemaId":"components/schemas/SignedRequest","pointer":"/paths/~1payment-links/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/payment-links","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"responseCodes":["200","400","500"],"pointer":"/payment-links","href":"payment-links/createapipaymentlink","openApiOperationId":"createApiPaymentLink","summary":"Create a payment link"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/SignedRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The link was created.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payment-links/post/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payment-links/post/responses/400/content/application~1json/examples/missingFields"]},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature could not be verified, or the key was missing."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Note this returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. The behaviour is documented as it"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"is, rather than as it ought to be."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payment-links/post/responses/500/content/application~1json/examples/badPayload"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payment-links/post/responses/500/content/application~1json/examples/badPayload"]}],"pointer":"/paths/~1payment-links/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payment-links/post/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payment-links/post/responses/400/content/application~1json/examples/missingFields"]}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payment-links/post/responses/500/content/application~1json/examples/badPayload"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1payment-links/post/responses/500/content/application~1json/examples/badPayload"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/payment-links/createapipaymentlink"}],"panels":[]}]},"httpPath":"/payment-links"}],"content":{"contentType":"group","meta":{"name":"Payment Links"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Payment Links","showPageActions":true},{"nodeType":"markdoc","content":"Shareable URLs that collect a payment."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/payment-links","summary":"Create a payment link","prefix":{"name":"post","color":"post"},"badges":[],"link":"/payment-links/createapipaymentlink","deprecated":false}]}]}]}]}},{"type":"group","label":"Subscriptions","link":"/apis/v1/dime-v1/subscriptions","routeSlug":"/apis/v1/dime-v1/subscriptions","items":[{"label":"Change a subscription's status","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/subscriptions/changesubscriptionstatus","routeSlug":"/apis/v1/dime-v1/subscriptions/changesubscriptionstatus","metadata":{"seo":{"title":"Change a subscription's status","description":"Cancel a subscription, or pause and resume it."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"changeSubscriptionStatus","name":"Change a subscription's status","isWebhook":false,"pointer":"/paths/~1subscriptions~1cancel/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Change a subscription's status","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Cancel a subscription, or pause and resume it."},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"schemaId":"components/schemas/SignedRequest","pointer":"/paths/~1subscriptions~1cancel/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/subscriptions/cancel","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"responseCodes":["200","400","500"],"pointer":"/subscriptions/cancel","href":"subscriptions/changesubscriptionstatus","openApiOperationId":"changeSubscriptionStatus","summary":"Change a subscription's status"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/SignedRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The subscription was updated.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1cancel/put/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1cancel/put/responses/400/content/application~1json/examples/missingFields"]},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature could not be verified, or the key was missing."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Note this returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. The behaviour is documented as it"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"is, rather than as it ought to be."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1cancel/put/responses/500/content/application~1json/examples/badPayload"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1cancel/put/responses/500/content/application~1json/examples/badPayload"]}],"pointer":"/paths/~1subscriptions~1cancel/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1cancel/put/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1cancel/put/responses/400/content/application~1json/examples/missingFields"]}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1cancel/put/responses/500/content/application~1json/examples/badPayload"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1cancel/put/responses/500/content/application~1json/examples/badPayload"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/subscriptions/changesubscriptionstatus"}],"panels":[]}]},"httpPath":"/subscriptions/cancel"},{"label":"Bill a subscription invoice","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/v1/dime-v1/subscriptions/processdimebilling","routeSlug":"/apis/v1/dime-v1/subscriptions/processdimebilling","metadata":{"seo":{"title":"Bill a subscription invoice","description":"Charges the stored card against an outstanding invoice."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"processDimeBilling","name":"Bill a subscription invoice","isWebhook":false,"pointer":"/paths/~1subscriptions~1dime-billing/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Bill a subscription invoice","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Charges the stored card against an outstanding invoice."},{"nodeType":"security","requirements":[{"schemes":[{"name":"ClientKey","scopes":[],"type":"apiKey","in":"header","paramName":"client_key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"schemaId":"components/schemas/SignedRequest","pointer":"/paths/~1subscriptions~1dime-billing/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/subscriptions/dime-billing","servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ClientKey","type":"apiKey","name":"client_key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"responseCodes":["200","400","500"],"pointer":"/subscriptions/dime-billing","href":"subscriptions/processdimebilling","openApiOperationId":"processDimeBilling","summary":"Bill a subscription invoice"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/v1/dime-v1","description":"Mock server","isMockServer":true},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"schemaId":"components/schemas/SignedRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SignedRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"The billing result.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}},"schemaId":"components/schemas/Envelope"},{"code":"400","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"One or more parameters were rejected. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body.message"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is an array"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"listing every failure, not just the first."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1dime-billing/post/responses/400/content/application~1json/examples/missingFields"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1dime-billing/post/responses/400/content/application~1json/examples/missingFields"]},{"code":"500","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The signature could not be verified, or the key was missing."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Note this returns "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", not 401. The behaviour is documented as it"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"is, rather than as it ought to be."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1dime-billing/post/responses/500/content/application~1json/examples/badPayload"]}},"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1dime-billing/post/responses/500/content/application~1json/examples/badPayload"]}],"pointer":"/paths/~1subscriptions~1dime-billing/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/Envelope","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope"}}},{"code":"400","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1dime-billing/post/responses/400/content/application~1json/examples/missingFields"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1dime-billing/post/responses/400/content/application~1json/examples/missingFields"]}}},{"code":"500","schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1dime-billing/post/responses/500/content/application~1json/examples/badPayload"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/Envelope","exampleIds":["paths/~1subscriptions~1dime-billing/post/responses/500/content/application~1json/examples/badPayload"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/subscriptions/processdimebilling"}],"panels":[]}]},"httpPath":"/subscriptions/dime-billing"}],"content":{"contentType":"group","meta":{"name":"Subscriptions"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Subscriptions","showPageActions":true},{"nodeType":"markdoc","content":"Manage recurring billing."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/subscriptions/cancel","summary":"Change a subscription's status","prefix":{"name":"put","color":"put"},"badges":[],"link":"/subscriptions/changesubscriptionstatus","deprecated":false},{"title":"/subscriptions/dime-billing","summary":"Bill a subscription invoice","prefix":{"name":"post","color":"post"},"badges":[],"link":"/subscriptions/processdimebilling","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/SignedRequest":{"id":"components/schemas/SignedRequest","kind":"json-schema","title":"SignedRequest","data":{"type":"object","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Every write endpoint takes this shape. The real parameters live inside"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" as a JWT signed with your secret key."},"children":[],"type":"text"}],"type":"paragraph"}],"required":["data"],"properties":{"data":{"type":"string","description":"A JWT signed with your secret key, holding the parameters.","example":"example"},"lang":{"type":"string","default":"en","example":"example"}}}},"components/schemas/Envelope":{"id":"components/schemas/Envelope","kind":"json-schema","title":"Envelope","data":{"type":"object","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Every v1 response carries this wrapper. The payload is under "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"body"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":","},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"and "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"statusCode"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" repeats the HTTP status."},"children":[],"type":"text"}],"type":"paragraph"}],"required":["statusCode","body"],"properties":{"statusCode":{"type":"integer","description":"Repeats the HTTP status code.","example":200},"headers":{"type":"object","additionalProperties":true},"body":{"type":"object","properties":{"message":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"A string on success. On a validation failure, an array holding\nevery rule that failed.\n"},"response":{"description":"The payload, when the endpoint returns one."}}}}}},"components/schemas/Currency":{"id":"components/schemas/Currency","kind":"json-schema","title":"Currency","data":{"type":"string","enum":["USD","JMD","GBP","EUR","TTD","BBD","XCD","GYD","SRD"],"example":"JMD"}},"components/schemas/LineItem":{"id":"components/schemas/LineItem","kind":"json-schema","title":"LineItem","data":{"type":"object","required":["name","price","quantity"],"properties":{"id":{"type":"string","example":"3f8a1e02-9c4d-4b71-a5e3-6d2f0b8c7a19"},"name":{"type":"string","example":"Sample Item"},"price":{"type":"number","example":1100},"quantity":{"type":"integer","minimum":1,"example":1},"sku":{"type":"string","example":"SAMPLE"}}}},"components/schemas/BillingPerson":{"id":"components/schemas/BillingPerson","kind":"json-schema","title":"BillingPerson","data":{"type":"object","properties":{"name":{"type":"string","example":"Sample Item"},"email":{"type":"string","format":"email","example":"buyer@example.com"},"phone":{"type":"string","example":"example"},"street":{"type":"string","example":"example"},"city":{"type":"string","example":"example"},"stateOrProvinceName":{"type":"string","example":"Sample Item"},"stateOrProvinceCode":{"type":"string","example":"parameter_missing"},"postalCode":{"type":"string","example":"parameter_missing"},"countryCode":{"type":"string","example":"JM"},"countryName":{"type":"string","example":"Jamaica"}}}},"components/schemas/CreateOrderParams":{"id":"components/schemas/CreateOrderParams","kind":"json-schema","title":"CreateOrderParams","data":{"type":"object","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The parameters to sign into "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". On "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"/donate-orders"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" they are sent"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"as the body directly."},"children":[],"type":"text"}],"type":"paragraph"}],"required":["id","currency","subtotal","total","tax","email","fulfilled"],"properties":{"id":{"type":"string","format":"uuid","maxLength":100,"description":"Your own identifier for the order.","example":"3f8a1e02-9c4d-4b71-a5e3-6d2f0b8c7a19"},"currency":{"$ref":"#/components/schemas/Currency"},"settlement_country":{"type":"string","maxLength":100,"description":"Country the order settles in, as an ISO 3166-1 alpha-2 or alpha-3 code\nor the English country name. Selects the merchant's processing\nconfiguration for the currency in that country; defaults to the\nmerchant's own country.\n","example":"TT"},"subtotal":{"type":"number","minimum":0,"example":1000},"total":{"type":"number","minimum":0,"example":1100},"tax":{"type":"number","minimum":0,"example":100},"email":{"type":"string","format":"email","example":"buyer@example.com"},"fulfilled":{"type":"boolean","description":"Whether the goods have already been delivered.","example":true},"ipAddress":{"type":"string","description":"The buyer's IP address.","example":"198.51.100.10"},"referenceTransactionId":{"type":"string","example":"order-1024"},"description":{"type":"string","example":"A short description."},"items":{"type":"array","items":{"$ref":"#/components/schemas/LineItem"}},"billingPerson":{"$ref":"#/components/schemas/BillingPerson"},"is_subscription":{"type":"boolean","example":true},"tokenize":{"type":"boolean","example":true},"subscription_instructions":{"type":"object","properties":{"recurring_frequency":{"type":"string","enum":["WEEKLY","MONTHLY","YEARLY"],"example":"WEEKLY"},"billing_cycles":{"type":"integer","minimum":1,"example":12}}}}}},"components/schemas/VerifyParams":{"id":"components/schemas/VerifyParams","kind":"json-schema","title":"VerifyParams","data":{"type":"object","required":["token","value"],"properties":{"token":{"type":"string","description":"The card request token.","example":"ob9gWGGx5ACvn6KU"},"value":{"type":"number","minimum":0,"description":"The amount the customer saw on their statement.","example":1.23}}}},"schema_0":{"kind":"json-schema","data":{"type":"string"},"id":"schema_0"},"schema_1":{"kind":"json-schema","data":{"type":"object","additionalProperties":true},"id":"schema_1"}},"exampleStore":{"paths/~1orders/post/requestBody/content/application~1json/examples/signed":{"value":{"lang":"en","data":"eyJhbGciOiJIUzI1NiJ9.eyJpZCI6Ii4uLiJ9.signature"},"key":"signed","summary":"The request as sent","id":"paths/~1orders/post/requestBody/content/application~1json/examples/signed"},"paths/~1orders/post/responses/200/content/application~1json/examples/created":{"value":{"statusCode":200,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Successful created api order request","response":{"order_url":"https://pay.dimepay.app/e-order/oB7ydv_jQWus44bV"}}},"key":"created","summary":"Captured from a live sandbox response","id":"paths/~1orders/post/responses/200/content/application~1json/examples/created"},"paths/~1orders/post/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1orders/post/responses/400/content/application~1json/examples/missingFields"},"paths/~1orders/post/responses/500/content/application~1json/examples/badPayload":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Error verifying api payload","response":{"type":"String","message":"Error verifying api payload"}}},"key":"badPayload","summary":"Captured from a live sandbox response","id":"paths/~1orders/post/responses/500/content/application~1json/examples/badPayload"},"paths/~1orders~1{token}/get/responses/200/content/application~1json/examples/found":{"value":{"statusCode":200,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Successful created api order request","response":{"order":{"id":"379cce2e-6243-4233-a892-f2733726a011","token":"ojuCcV7veU9HZ0Vd"}}}},"key":"found","summary":"Captured from a live sandbox response","id":"paths/~1orders~1{token}/get/responses/200/content/application~1json/examples/found"},"paths/~1orders~1{token}/get/responses/500/content/application~1json/examples/malformed":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"JsonWebTokenError: jwt malformed"}},"key":"malformed","summary":"An unsigned token was sent","id":"paths/~1orders~1{token}/get/responses/500/content/application~1json/examples/malformed"},"paths/~1donate-orders/post/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1donate-orders/post/responses/400/content/application~1json/examples/missingFields"},"paths/~1card-request/post/responses/201/content/application~1json/examples/created":{"value":{"statusCode":201,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Successfully created api card request","response":{"card_url":"https://pay.dimepay.app/e-card/mQWTngFTEsif77u/cr_URQhkAkLE-IgX","token":"cr_URQhkAkLE-IgX","status":"STARTED","currency":"USD","verification_attempts":0,"last_four_digits":null,"card_scheme":null,"card_expiry":null,"expired":false,"metadata":{"type":"API","key_id":"c92c7114-a234-4240-8216-5ff31c25d630","webhook_url":"https://example.com/hooks"}}}},"key":"created","summary":"Captured from a live sandbox response","id":"paths/~1card-request/post/responses/201/content/application~1json/examples/created"},"paths/~1card-request/post/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1card-request/post/responses/400/content/application~1json/examples/missingFields"},"paths/~1card-request/post/responses/500/content/application~1json/examples/badPayload":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Error verifying api payload","response":{"type":"String","message":"Error verifying api payload"}}},"key":"badPayload","summary":"Captured from a live sandbox response","id":"paths/~1card-request/post/responses/500/content/application~1json/examples/badPayload"},"paths/~1card-request~1verify/put/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1card-request~1verify/put/responses/400/content/application~1json/examples/missingFields"},"paths/~1card-request~1verify/put/responses/500/content/application~1json/examples/badPayload":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Error verifying api payload","response":{"type":"String","message":"Error verifying api payload"}}},"key":"badPayload","summary":"Captured from a live sandbox response","id":"paths/~1card-request~1verify/put/responses/500/content/application~1json/examples/badPayload"},"paths/~1card-request~1open-verify/put/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1card-request~1open-verify/put/responses/400/content/application~1json/examples/missingFields"},"paths/~1card-request~1{token}/get/responses/500/content/application~1json/examples/notFound":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Card request not found","response":{"type":"String","message":"Card request not found"}}},"key":"notFound","summary":"notFound","id":"paths/~1card-request~1{token}/get/responses/500/content/application~1json/examples/notFound"},"paths/~1card-request~1{token}/put/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1card-request~1{token}/put/responses/400/content/application~1json/examples/missingFields"},"paths/~1cards~1{token}/get/responses/500/content/application~1json/examples/badPayload":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Error verifying api payload","response":{"type":"String","message":"Error verifying api payload"}}},"key":"badPayload","summary":"Captured from a live sandbox response","id":"paths/~1cards~1{token}/get/responses/500/content/application~1json/examples/badPayload"},"paths/~1payments~1sale/post/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1payments~1sale/post/responses/400/content/application~1json/examples/missingFields"},"paths/~1payments~1sale/post/responses/500/content/application~1json/examples/badPayload":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Error verifying api payload","response":{"type":"String","message":"Error verifying api payload"}}},"key":"badPayload","summary":"Captured from a live sandbox response","id":"paths/~1payments~1sale/post/responses/500/content/application~1json/examples/badPayload"},"paths/~1payments~1auth/post/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1payments~1auth/post/responses/400/content/application~1json/examples/missingFields"},"paths/~1payments~1auth/post/responses/500/content/application~1json/examples/badPayload":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Error verifying api payload","response":{"type":"String","message":"Error verifying api payload"}}},"key":"badPayload","summary":"Captured from a live sandbox response","id":"paths/~1payments~1auth/post/responses/500/content/application~1json/examples/badPayload"},"paths/~1payments~1capture/put/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1payments~1capture/put/responses/400/content/application~1json/examples/missingFields"},"paths/~1payments~1capture/put/responses/500/content/application~1json/examples/badPayload":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Error verifying api payload","response":{"type":"String","message":"Error verifying api payload"}}},"key":"badPayload","summary":"Captured from a live sandbox response","id":"paths/~1payments~1capture/put/responses/500/content/application~1json/examples/badPayload"},"paths/~1payments~1void/put/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1payments~1void/put/responses/400/content/application~1json/examples/missingFields"},"paths/~1payments~1void/put/responses/500/content/application~1json/examples/badPayload":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Error verifying api payload","response":{"type":"String","message":"Error verifying api payload"}}},"key":"badPayload","summary":"Captured from a live sandbox response","id":"paths/~1payments~1void/put/responses/500/content/application~1json/examples/badPayload"},"paths/~1payments~1refund/put/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1payments~1refund/put/responses/400/content/application~1json/examples/missingFields"},"paths/~1payments~1refund/put/responses/500/content/application~1json/examples/badPayload":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Error verifying api payload","response":{"type":"String","message":"Error verifying api payload"}}},"key":"badPayload","summary":"Captured from a live sandbox response","id":"paths/~1payments~1refund/put/responses/500/content/application~1json/examples/badPayload"},"paths/~1payments~1hosted-page/post/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1payments~1hosted-page/post/responses/400/content/application~1json/examples/missingFields"},"paths/~1payments~1hosted-page/post/responses/500/content/application~1json/examples/badPayload":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Error verifying api payload","response":{"type":"String","message":"Error verifying api payload"}}},"key":"badPayload","summary":"Captured from a live sandbox response","id":"paths/~1payments~1hosted-page/post/responses/500/content/application~1json/examples/badPayload"},"paths/~1invoices/post/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1invoices/post/responses/400/content/application~1json/examples/missingFields"},"paths/~1invoices/post/responses/500/content/application~1json/examples/badPayload":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Error verifying api payload","response":{"type":"String","message":"Error verifying api payload"}}},"key":"badPayload","summary":"Captured from a live sandbox response","id":"paths/~1invoices/post/responses/500/content/application~1json/examples/badPayload"},"paths/~1payment-links/post/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1payment-links/post/responses/400/content/application~1json/examples/missingFields"},"paths/~1payment-links/post/responses/500/content/application~1json/examples/badPayload":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Error verifying api payload","response":{"type":"String","message":"Error verifying api payload"}}},"key":"badPayload","summary":"Captured from a live sandbox response","id":"paths/~1payment-links/post/responses/500/content/application~1json/examples/badPayload"},"paths/~1subscriptions~1cancel/put/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1subscriptions~1cancel/put/responses/400/content/application~1json/examples/missingFields"},"paths/~1subscriptions~1cancel/put/responses/500/content/application~1json/examples/badPayload":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Error verifying api payload","response":{"type":"String","message":"Error verifying api payload"}}},"key":"badPayload","summary":"Captured from a live sandbox response","id":"paths/~1subscriptions~1cancel/put/responses/500/content/application~1json/examples/badPayload"},"paths/~1subscriptions~1dime-billing/post/responses/400/content/application~1json/examples/missingFields":{"value":{"statusCode":400,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":["Order ID is required","Order ID must be a UUID","Subtotal is required","Total is required","Email is required"]}},"key":"missingFields","summary":"Captured from a live sandbox response","id":"paths/~1subscriptions~1dime-billing/post/responses/400/content/application~1json/examples/missingFields"},"paths/~1subscriptions~1dime-billing/post/responses/500/content/application~1json/examples/badPayload":{"value":{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*"},"body":{"message":"Error verifying api payload","response":{"type":"String","message":"Error verifying api payload"}}},"key":"badPayload","summary":"Captured from a live sandbox response","id":"paths/~1subscriptions~1dime-billing/post/responses/500/content/application~1json/examples/badPayload"}},"securitySchemeStore":{"ClientKey":{"id":"ClientKey","type":"apiKey","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Identifies the merchant. Pair it with a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"data"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" field in the body,"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{},"children":[],"type":"softbreak"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"signed with the matching secret key."},"children":[],"type":"text"}],"type":"paragraph"}],"in":"header","paramName":"client_key"}},"specVersion":"3.1.0","servers":[{"url":"/_mock/apis/v1/dime-v1","isMockServer":true,"description":"Mock server"},{"url":"https://sandbox.api.dimepay.app/dapi/v1"}],"specType":"openapi"},"options":{"mockServer":{"url":"/_mock/apis/v1/dime-v1","position":"first","description":"Mock server"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/apis/v1/dime-v1.json?download"},{"url":"/_bundle/apis/v1/dime-v1.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false,"asyncapi":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Dime Partner API v1","description":":::warning Deprecation planned\n\n**v1 will be deprecated.** It remains fully supported for now, but all new\nintegrations should use [the v2 API](../v2/dime-v2.yaml), and existing\nintegrations should plan to migrate.\n\n:::\n\nThe original Dime partner API.\n\nv2 takes plain JSON instead of a signed payload, returns resources without\na wrapper, and reports every failure in one consistent error shape. See\n**Moving from v1** on the API reference home page for the differences.\n\n## Authentication\n\nTwo credentials work together:\n\n- Your **client key** goes in the `client_key` header and identifies you.\n- Your **secret key** signs the request parameters.\n\nSign the parameters as a JWT and send them as `data`:\n\n```json\n{\n  \"lang\": \"en\",\n  \"data\": \"<JWT signed with your secret key>\"\n}\n```\n\nTwo endpoints are exceptions and take plain JSON: `/donate-orders` and\n`/card-request/open-verify`.\n\n## Responses\n\nEvery response is wrapped:\n\n```json\n{\n  \"statusCode\": 200,\n  \"headers\": { \"Access-Control-Allow-Origin\": \"*\" },\n  \"body\": {\n    \"message\": \"Successful created api order request\",\n    \"response\": { \"order_url\": \"https://pay.dimepay.app/e-order/...\" }\n  }\n}\n```\n\n`statusCode` repeats the HTTP status. The payload is under `body.response`.\n\n## Errors\n\nA validation failure returns `body.message` as an **array** listing every\nrule that failed, not just the first.\n\nA bad or missing signature returns **500**, not 401. This is documented as\nthe API behaves today.\n"}},"baseSlug":"/apis/v1/dime-v1","routesMapping":{}}