POST/counterparty/{userId}/counterparties/{counterpartyId}/instrument

Create Payment Instrument (Stablecoin - USDC)

Creates a USDC stablecoin withdrawal instrument for a counterparty.

Path variables

FieldTypeRequiredPossible valuesDescription
userIdstringRequired—

Unique ID of the user. The user must be active.

counterpartyIdstringRequired—

Unique counterparty ID.

Headers

FieldTypeRequiredPossible valuesDescription
session-tokenstringRequired—

SessionToken obtained from the Create GMA Session endpoint. All secured endpoints require this header.

Request body

FieldTypeRequiredPossible valuesDescription
CurrencystringRequiredUSDC

Stablecoin currency.

TransferTypestringRequiredSTABLECOIN_WITHDRAW

Transfer type.

CustomValues.NicknamestringRequired—

Display name for the instrument.

CustomValues.AddressstringRequired—

Destination wallet address.

CustomValues.BlockchainstringRequiredETH

Blockchain network of the destination wallet.

Example request

{
  "Currency": "USDC",
  "TransferType": "STABLECOIN_WITHDRAW",
  "CustomValues": {
    "Nickname": "Test Stable Coin Creation",
    "Address": "0xa0b8****...****b481",
    "Blockchain": "ETH"
  }
}

ℹ  Note

CustomValues for TransferType STABLECOIN_WITHDRAW: Nickname, Address, Blockchain. Retrieve the exact required fields from the Get Required Fields for Instruments endpoint.

Response

FieldTypePossible valuesDescription
ResponseCodeinteger200 | 201 | 204 | 301 | 400 | 401 | 403 | 404 | 410 | 422 | 500 | 503

API result code in the response envelope. Indicates success or the error category (e.g. 200 success, 400 bad request, 401 unauthorized).

ResponseMessagestringSuccess | Created | NoContent | BadRequest | Unauthorized | Forbidden | NotFound | Gone | UnprocessableContent | ServerError | ResourceMoved | ServiceUnAvailable | UnProcessableEntity

Human-readable label paired with ResponseCode (e.g. Success, BadRequest, Unauthorized). Use with ResponseCode to interpret the outcome.

ResponseDataobjectPlease refer to below example for response body

ID of the newly created stablecoin instrument.

Example response

{
  "ResponseCode": 200,
  "ResponseMessage": "Success",
  "ResponseData": "3727746074356920285"
}

Requires `session-token: {SessionToken}` from Create GMA Session. Use the same client IP as authentication.

Search guide books, endpoints, paths, or parameters

↑↓navigate↵openEscclose