Transfers

Claim user pending orders (SCA)

POST/v2/social-pay/order/claim

Claim user pay orders. Stablecoin operations may require SCA PIN verification.

Authorization

ApiKeyAuth
X-Api-Key<token>

For accessing these endpoints a valid API key must be sent in the X-Api-Key header.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

[index: integer]?

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

Claim user pending orders (SCA)
curl --request POST \  --url 'https://gateway.bit2me.com/v2/social-pay/order/claim' \  --header 'Content-Type: application/json' \  --data '[  {    "orderId": "25e9349b-4039-4865-b306-56f3a2e1b916",    "pocketId": "e108f9c3-c3ae-4c43-b2fb-7ac04c2f12f6"  },  {    "orderId": "304809b8-0a04-4f88-af75-069ab4e5a36b",    "pocketId": "e108f9c3-c3ae-4c43-b2fb-7ac04c2f12f6"  }]'
[  {    "orderId": "25e9349b-4039-4865-b306-56f3a2e1b916",    "result": true  },  {    "message": "Could not claim order 304809b8-0a04-4f88-af75-069ab4e5a36b",    "orderId": "304809b8-0a04-4f88-af75-069ab4e5a36b",    "result": false  }]

Create order (SCA) POST

Creates a new social payment order. Requires 2FA via the `x-totp` header. When TOTP is missing, returns HTTP 428. When TOTP doesn't match, returns HTTP 420. Stablecoin operations may require SCA PIN verification.

Create social pay order with two step verification POST

Creates a new social payment order. The recipient is identified by email, phone, or alias depending on the `type` field. The amount is debited from the sender's pocket. This endpoint requires two step verification, and the verification is bound to this exact order: pocket, type, recipient, currency, amount, concept and note. 1. Call this endpoint without the verification headers. The response is a 428 with `data.ticket` and `data.operationId`. 2. Complete the verification with the ticket: call `POST /v1/auth/two-step-verification/initiate`, then `POST /v1/auth/two-step-verification/verify`. To send the code again or use a different channel, call `POST /v1/auth/two-step-verification/reissue`. 3. Repeat this request **with the same body**, the `proofToken` from the verify response in `x-two-step-verification-proof-token`, and the `data.operationId` from step 1 in `x-two-step-verification-operation-id`. A proof token can be used only once and expires two minutes after the verification. If it is missing, invalid, expired, already used, issued for a different operation, or the body changed, the response is a new 428 with a new ticket and operation ID. Start again from step 2 with those values. Stablecoin orders can also answer a 428 for SCA (`B2M_AUTH_SCA_*`, no `data`). Resolve it first, then repeat the request: the proof token is not spent by an SCA 428. Do not use `GET /v3/signin/sfa` or the `x-totp` headers for this endpoint.