Skip to main content
POST
/
api
/
awb-stock
/
requests
Request AWB stock
curl --request POST \
  --url https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io/api/awb-stock/requests \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "organizationId": "org-123",
  "airlinePrefix": "157",
  "requestedStock": 100,
  "validityPeriod": 12
}'
{
  "requestId": "req-123456789",
  "status": "pending",
  "organizationId": "org-123",
  "airlinePrefix": "157",
  "requestedStock": 100,
  "allocatedStock": 0,
  "validityPeriod": 12,
  "validFrom": "2024-01-15",
  "validTo": "2025-01-15",
  "submittedAt": "2024-01-15T10:30:00Z",
  "processedAt": null,
  "notes": "Request for Q1 2024 operations",
  "approvalNotes": null
}
ACA/EPO requests AWB stock from airline.

Reference Documentation

For more information on ACA stock request, please refer to:

Authorizations

Authorization
string
header
required

Body

application/json
organizationId
string
required
Example:

"org-123"

airlinePrefix
string
required
Example:

"157"

requestedStock
integer
required
Example:

100

validityPeriod
integer
Example:

12

Response

Stock request submitted successfully

requestId
string
required

Unique identifier for the stock request

Example:

"req-123456789"

status
enum<string>
required

Current status of the stock request

Available options:
pending,
approved,
rejected,
processing
Example:

"pending"

organizationId
string
required

Organization identifier that made the request

Example:

"org-123"

airlinePrefix
string
required

Airline AWB prefix requested

Example:

"157"

requestedStock
integer
required

Number of AWB stock units requested

Example:

100

validityPeriod
integer
required

Validity period in months as requested

Example:

12

submittedAt
string<date-time>
required

Timestamp when the request was submitted

Example:

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

allocatedStock
integer

Number of AWB stock units allocated (if any)

Example:

0

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"

processedAt
string<date-time>

Timestamp when the request was processed (if applicable)

Example:

null

notes
string

Additional notes or comments

Example:

"Request for Q1 2024 operations"

approvalNotes
string

Notes from the airline regarding approval/rejection

Example:

null

I