cURL
curl --request POST \ --url https://api.loopreturns.com/api/v1/labels \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "label_request_id": "67329889100573", "tracking_number": "9400136105440512280610", "carrier": "usps", "label_url": "https://s3.amazonaws.com/example-bucket/label.pdf", "qrcode_url": "https://s3.amazonaws.com/example-bucket/qrcode.pdf", "rate": { "amount": 50000, "currency_code": "USD" } }'
{ "id": "67329889100573", "tracking_number": "9400136105440512280610", "carrier": "usps", "label_url": "https://s3.amazonaws.com/example-bucket/label.pdf", "qrcode_url": "https://s3.amazonaws.com/example-bucket/qrcode.pdf", "rate": { "amount": 50000, "currency_code": "USD" }, "status": "new", "created_at": "2023-04-25T13:25:00-05:00" }
Create a label for a label request.
The access token received from the authorization server in the OAuth 2.0 flow.
OK
The response is of type object.
object