curl --request POST \
--url https://api.treasuryprime.com/check \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"account_id": "acct_11gag8g8aw8tzv",
"amount": "10.05",
"memo": "presidential pension",
"message": "Presidential pension for November 2021. Please deposit within 60 days.",
"recipient": {
"address": {
"city": "Washington",
"postal_code": "20003",
"state": "DC",
"street_line_1": "1600 Pennsylvania Ave.",
"street_line_2": ""
},
"name": "George Washington"
}
}'
{
"account_id": "acct_11gag8g8aw8tzv",
"amount": "10.05",
"check_date": "2021-11-09T22:39:48Z",
"check_number": "12012",
"created_at": "2021-11-09T22:39:48Z",
"id": "ch_11grny5mfhvjnp",
"memo": "presidential pension",
"message": "Presidential pension for November 2021. Please deposit within 60 days.",
"recipient": {
"address": {
"city": "Washington",
"postal_code": "20003",
"state": "DC",
"street_line_1": "1600 Pennsylvania Ave.",
"street_line_2": ""
},
"name": "George Washington"
},
"status": "pending",
"userdata": null
}
curl --request POST \
--url https://api.treasuryprime.com/check \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"account_id": "acct_11gag8g8aw8tzv",
"amount": "10.05",
"memo": "presidential pension",
"message": "Presidential pension for November 2021. Please deposit within 60 days.",
"recipient": {
"address": {
"city": "Washington",
"postal_code": "20003",
"state": "DC",
"street_line_1": "1600 Pennsylvania Ave.",
"street_line_2": ""
},
"name": "George Washington"
}
}'
{
"account_id": "acct_11gag8g8aw8tzv",
"amount": "10.05",
"check_date": "2021-11-09T22:39:48Z",
"check_number": "12012",
"created_at": "2021-11-09T22:39:48Z",
"id": "ch_11grny5mfhvjnp",
"memo": "presidential pension",
"message": "Presidential pension for November 2021. Please deposit within 60 days.",
"recipient": {
"address": {
"city": "Washington",
"postal_code": "20003",
"state": "DC",
"street_line_1": "1600 Pennsylvania Ave.",
"street_line_2": ""
},
"name": "George Washington"
},
"status": "pending",
"userdata": null
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
The check to create
The body is of type object
.
The check created
The response is of type object
.
Was this page helpful?