{ "opencollection": "1.0.0", "info": { "name": "Bolt API Reference Account Payments API", "version": "3.3.22" }, "items": [ { "info": { "name": "Payments", "type": "folder" }, "items": [ { "info": { "name": "Initialize a Bolt payment for logged in shoppers", "type": "http" }, "http": { "method": "POST", "url": "https://{environment}.bolt.com/v3/payments", "headers": [ { "name": "X-Publishable-Key", "value": "" }, { "name": "X-Merchant-Client-Id", "value": "" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "/v1/oauth/authorize", "accessTokenUrl": "/v1/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Initialize a Bolt logged-in shopper's intent to pay for a cart, using the specified payment method. Payments must be finalized before indicating the payment result to the shopper. Some payment methods will finalize automatically after initialization. For these payments, they will transition directly to \"finalized\" and the response from Initialize Payment will contain a finalized payment.\n" }, { "info": { "name": "Finalize a pending payment", "type": "http" }, "http": { "method": "POST", "url": "https://{environment}.bolt.com/v3/payments/:id", "headers": [ { "name": "X-Publishable-Key", "value": "" }, { "name": "X-Merchant-Client-Id", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the payment to operate on" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "/v1/oauth/authorize", "accessTokenUrl": "/v1/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Finalize a pending payment being made by a Bolt logged-in shopper. Upon receipt of a finalized payment result, payment success should be communicated to the shopper." }, { "info": { "name": "Initialize a Bolt payment for guest shoppers", "type": "http" }, "http": { "method": "POST", "url": "https://{environment}.bolt.com/v3/guest/payments", "headers": [ { "name": "X-Publishable-Key", "value": "" }, { "name": "X-Merchant-Client-Id", "value": "" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "X-API-Key", "value": "{{X-API-Key}}", "placement": "header" } }, "docs": "Initialize a Bolt guest shopper's intent to pay for a cart, using the specified payment method. Payments must be finalized before indicating the payment result to the shopper. Some payment methods will finalize automatically after initialization. For these payments, they will transition directly to \"finalized\" and the response from Initialize Payment will contain a finalized payment." }, { "info": { "name": "Finalize a pending guest payment", "type": "http" }, "http": { "method": "POST", "url": "https://{environment}.bolt.com/v3/guest/payments/:id", "headers": [ { "name": "X-Publishable-Key", "value": "" }, { "name": "X-Merchant-Client-Id", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the guest payment to operate on" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "X-API-Key", "value": "{{X-API-Key}}", "placement": "header" } }, "docs": "Finalize a pending payment being made by a Bolt guest shopper. Upon receipt of a finalized payment result, payment success should be communicated to the shopper." } ] } ], "bundled": true }