Skip to Content
API ReferenceStore settings

Crypto checkout settings

Change how short a crypto payment may fall and how many blockchain confirmations it needs.

These two settings apply when your store takes crypto through SellApp's crypto processor. Read the current values in crypto of checkout settings; it is null when the store does not take crypto this way, and this endpoint then returns 422 on crypto.

SellApp passes changed values to the crypto processor before saving them. When the processor refuses them, the request returns 422 on crypto and nothing changes.

PATCH
/v2/store/settings/checkout/crypto

Change the crypto checkout values you send, for a store that takes crypto through SellApp's crypto processor. SellApp sends the changed values to the crypto processor and saves them only once it accepts them; an unchanged value is not sent. Returns the checkout settings with the new crypto values. 422 on crypto when the store does not take crypto through SellApp's crypto processor, or when the processor refuses the values; nothing is saved then. 422 on underpaid_percentage or minimum_confirmations for a value out of range. Sending the same change again is safe. Requires the store API-key ability and the store permission in your team role. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
underpaid_percentage?integer

How far short of the amount due, in percent, a crypto payment can be and still count as paid: 2 accepts a payment up to 2% short. 0 to 100.

Range0 <= value <= 100
minimum_confirmations?integer

How many blockchain confirmations a crypto payment needs before the order is processed. 1 to 25.

Range1 <= value <= 25

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X PATCH 'https://sell.app/api/v2/store/settings/checkout/crypto' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "minimum_confirmations": 3}'
{  "data": {    "shopping_cart_enabled": true,    "customer_email_required": true,    "allow_vpn_purchases": false,    "blacklist_on_dispute": true,    "minimum_spend": "5.00",    "billing_descriptor": "LAUNCH LAB",    "attempts_per_customer": 5,    "attempts_per_ip": 20,    "attempts_per_email": null,    "attempts_per_fingerprint": null,    "rate_limit_window_seconds": 3600,    "crypto": {      "underpaid_percentage": 2,      "minimum_confirmations": 3    }  }}
PUT
/v2/store/settings/checkout/crypto

Replace both crypto checkout values, for a store that takes crypto through SellApp's crypto processor; underpaid_percentage and minimum_confirmations are required. SellApp sends the changed values to the crypto processor and saves them only once it accepts them; an unchanged value is not sent. Returns the checkout settings with the new crypto values. 422 on crypto when the store does not take crypto through SellApp's crypto processor, or when the processor refuses the values; nothing is saved then. 422 on underpaid_percentage or minimum_confirmations for a value out of range. Sending the same change again is safe. Requires the store API-key ability and the store permission in your team role. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
underpaid_percentage*integer

How far short of the amount due, in percent, a crypto payment can be and still count as paid: 2 accepts a payment up to 2% short. 0 to 100.

Range0 <= value <= 100
minimum_confirmations*integer

How many blockchain confirmations a crypto payment needs before the order is processed. 1 to 25.

Range1 <= value <= 25

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X PUT 'https://sell.app/api/v2/store/settings/checkout/crypto' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "underpaid_percentage": 1,  "minimum_confirmations": 3}'
{  "data": {    "shopping_cart_enabled": true,    "customer_email_required": true,    "allow_vpn_purchases": false,    "blacklist_on_dispute": true,    "minimum_spend": "5.00",    "billing_descriptor": "LAUNCH LAB",    "attempts_per_customer": 5,    "attempts_per_ip": 20,    "attempts_per_email": null,    "attempts_per_fingerprint": null,    "rate_limit_window_seconds": 3600,    "crypto": {      "underpaid_percentage": 1,      "minimum_confirmations": 3    }  }}