Skip to content

PackageOrder

POST /openapi/order/v1/package

Request Parameters

Parameter Type Required Description
orderId string true Order id in Genie

Response Parameters

Parameter Type Description
orderId string Order id in Genie

Request Example

Example

curl -X POST  \
-H "X-Advai-Country: ID" \
-H "Authorization: {Your Access Key} + ':' + signature" \
-H "Content-Type: application/json" \
-d '{
        "orderId": "SO5F6BFC765908010001E1DD83"
    }' \
"{Genie Host}/openapi/order/v1/package"

Success

{
    "code":"SUCCESS",
    "message":"OK",
    "data": "SO5F6BFC765908010001E1DD83",
    "extra":null,
    "transactionId":"f49f370af5805764"
}

Failure

{
    "code": "PARAMETER_ERROR",
    "message": "This order operation channel does not support",
    "data": "SO5F6BFC765908010001E1DD83",
    "extra": null,
    "pricingStrategy": "FREE"
}

Note

You need to check the code to see if the operation was successful. If failed, see message for detail reason.