POST
/
label-requests
/
{id}
/
errors
Create a label request error
curl --request POST \
  --url https://api.loopreturns.com/api/v1/label-requests/{id}/errors \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "reason": "INSUFFICIENT_FUNDS",
  "message": "Failed to generate a label, the origin address is invalid"
}'
{
  "reason": "INSUFFICIENT_FUNDS",
  "message": "Failed to generate a label, the origin address is invalid",
  "created_at": "2023-04-25T13:25:00-05:00"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
integer
required

The unique identifier for the label, created by Loop.

Examples:

67329889100573

Body

application/json
reason
enum<string>
required

The reason code associated with the label request error.

Available options:
INSUFFICIENT_FUNDS,
INVALID_ADDRESS,
Other
Examples:

"INSUFFICIENT_FUNDS"

message
string

The message assocated with the label request error.

Examples:

"Failed to generate a label, the origin address is invalid"

Response

OK

reason
enum<string>

The reason code associated with the label request error.

Available options:
INSUFFICIENT_FUNDS,
INVALID_ADDRESS,
Other
Examples:

"INSUFFICIENT_FUNDS"

message
string

The message assocated with the label request error.

Examples:

"Failed to generate a label, the origin address is invalid"

created_at
string<date-time>

The date the label was created.

Examples:

"2023-04-25T13:25:00-05:00"