Skip to main content
PUT
/
api
/
awb-stock
/
reply
/
{requestId}
Reply to AWB stock request
curl --request PUT \
  --url https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/awb-stock/reply/{requestId} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "approved",
  "allocatedStock": 100,
  "startNumber": "157000001",
  "endNumber": "157000100",
  "validFrom": "2024-01-15",
  "validTo": "2025-01-15",
  "notes": "Stock allocated as requested. Please ensure proper usage compliance.",
  "rejectionReason": "Insufficient stock availability"
}'
{
  "requestId": "req-123456789",
  "status": "approved",
  "allocatedStock": 100,
  "startNumber": "157000001",
  "endNumber": "157000100",
  "validFrom": "2024-01-15",
  "validTo": "2025-01-15",
  "repliedAt": "2024-01-15T14:30:00Z",
  "notes": "Stock allocated as requested. Please ensure proper usage compliance."
}
Airline replies to an AWB stock request with approval/rejection and allocation details.

Reference Documentation

For more information on AWB stock assignment and management, please refer to:

Authorizations

Authorization
string
header
required

Path Parameters

requestId
string
required

Unique request identifier

Body

application/json
status
enum<string>
required

Reply status for the AWB stock request

Available options:
approved,
rejected,
partially_approved
Example:

"approved"

allocatedStock
integer
required

Number of AWB stock units allocated (0 if rejected)

Example:

100

validFrom
string<date>
required

Validity start date for allocated stock

Example:

"2024-01-15"

validTo
string<date>
required

Validity end date for allocated stock

Example:

"2025-01-15"

startNumber
string

Starting AWB number in allocated range (if approved)

Example:

"157000001"

endNumber
string

Ending AWB number in allocated range (if approved)

Example:

"157000100"

notes
string

Additional notes from the airline

Example:

"Stock allocated as requested. Please ensure proper usage compliance."

rejectionReason
string

Reason for rejection (if status is rejected)

Example:

"Insufficient stock availability"

Response

Reply submitted successfully

requestId
string
required

Unique request identifier

Example:

"req-123456789"

status
enum<string>
required

Updated request status after reply

Available options:
approved,
rejected,
partially_approved
Example:

"approved"

allocatedStock
integer
required

Number of AWB stock units allocated

Example:

100

repliedAt
string<date-time>
required

Timestamp when the reply was submitted

Example:

"2024-01-15T14:30:00Z"

startNumber
string

Starting AWB number in allocated range

Example:

"157000001"

endNumber
string

Ending AWB number in allocated range

Example:

"157000100"

validFrom
string<date>

Validity start date for allocated stock

Example:

"2024-01-15"

validTo
string<date>

Validity end date for allocated stock

Example:

"2025-01-15"

notes
string

Additional notes from the airline

Example:

"Stock allocated as requested. Please ensure proper usage compliance."

I