Skip to main content

Create a list of supporting documents on a portout request

POST 
/portouts/:id/supporting_documents

Creates a list of supporting documents on a portout request.

Request

Path Parameters

    id uuidrequired

    Portout id

Body

required

    documents

    object[]

    Possible values: >= 1, <= 10

    List of supporting documents parameters

  • Array [

  • type stringrequired

    Possible values: [loa, invoice]

    Identifies the type of the document

    document_id uuidrequired

    Identifies the associated document

  • ]

Responses

201: Portout Supporting Documents

401: Unauthorized

404: Resource not found

422: Unprocessable entity. Check message field in response for details.

Request samples


curl -L 'https://api.telnyx.com/v2/portouts/:id/supporting_documents' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"documents": [
{
"type": "loa",
"document_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
}
]
}'

Response samples


{
"data": [
{
"id": "5a16902a-2ee9-4882-a247-420fc6627b62",
"record_type": "supporting_document",
"type": "loa",
"portout_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"document_id": "f1c5e079-9d82-4f50-95bc-ae2f6b8d84d7",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
]
}