Add track

POST /V1/returns/{id}/tracking-numbers

Add track

Path parameters

  • id integer Required

Body

  • track object Required

    Interface TrackInterface

    Hide track attributes Show track attributes object
    • entity_id integer Required

      Entity id

    • rma_entity_id integer Required

      Rma entity id

    • track_number string Required

      Track number

    • carrier_title string Required

      Carrier title

    • carrier_code string Required

      Carrier code

    • extension_attributes object

      ExtensionInterface class for @see \Magento\Rma\Api\Data\TrackInterface

      Hide extension_attributes attributes Show extension_attributes attributes object
      • status string
      • delivery_time string
      • external_updated_at string
      • label_filename string

Responses

  • 200

    200 Success.

  • 401

    401 Unauthorized

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

  • default

    Unexpected error

    Hide response attributes Show response attributes object
    • message string Required

      Error message

    • errors array[object]

      Error details

      Error details

      Hide errors attributes Show errors attributes object
      • message string

        Error message

      • parameters array[object]

        Error parameters item

        Error parameters item

        Hide parameters attributes Show parameters attributes object
        • resources string

          ACL resource

        • fieldName string

          Missing or invalid field name

        • fieldValue string

          Incorrect field value

    • code integer

      Error code

    • parameters array[object]

      Error parameters item

      Error parameters item

      Hide parameters attributes Show parameters attributes object
      • resources string

        ACL resource

      • fieldName string

        Missing or invalid field name

      • fieldValue string

        Incorrect field value

    • trace string

      Stack trace

POST /V1/returns/{id}/tracking-numbers
curl \
 --request POST 'https://magento2.winkelstraat.mac/rest/all/V1/returns/{id}/tracking-numbers' \
 --data '{"track":{"entity_id":42,"rma_entity_id":42,"track_number":"string","carrier_title":"string","carrier_code":"string","extension_attributes":{"status":"string","delivery_time":"string","external_updated_at":"string","label_filename":"string"}}}'
Request examples
{
  "track": {
    "entity_id": 42,
    "rma_entity_id": 42,
    "track_number": "string",
    "carrier_title": "string",
    "carrier_code": "string",
    "extension_attributes": {
      "status": "string",
      "delivery_time": "string",
      "external_updated_at": "string",
      "label_filename": "string"
    }
  }
}
Response examples (200)
true
Response examples (401)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}