Process Payment

POST {{host}}/api/partner/orders/{{order_number}}/payment/status

This is used to manually approve an order. This should only be used if the payment has been confirmed as received, but the order has not changed to approved automatically.

Request Body

{"status"=>"Approved", "generate_docs"=>true}

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
``null

RESPONSES

status: OK

{"data":{"schema_version":1,"site_id":1,"quote_id":"6421a37ce2769c519400acd7","order_number":"1-JUN8668-D735471FA063","client_id":54335,"status":"Cancelled","premium":0,"total":0,"currency_id":"AUD","status_updated_at":"2023-06-29T14:06:48.924000Z","ordered_at":"2023-06-29T14:06:33.563000Z","approved_at":"2023-06-29T14:06:39.386000Z","items":[{"id":"88e5e4a3-7e80-4935-83a5-4b5e0e08d64c","product_id":1001,"program_id":3,"product_uuid":"4656be98-de5d-45c7-88fc-1a747f0ea0c4","product_name":"Australian Standard","sanction_search_id":"0","product_major_id":3,"product_minor_id":870,"policy_file_id":11249,"policy_number":"1-JUN83A5-4B5E0E08D64C-1","start_at":"2023-07-04","end_at":"2023-07-25","deposit_at":"2023-06-29","details":[{"id":"3bb01efa-39b1-4f56-8347-3b6e3efdfe88","type":"deductible","detail":"excess_fee","amount":100},{"id":"679e54ed-b316-4771-81a8-e52351c11960","type":"package","detail":"Travel Medical Package","amount":0,"product_package_id":1686},{"id":"16e5578c-2b1e-48ea-b97c-dda981e13885","type":"package","detail":"Trip Interruption Package","amount":0,"product_package_id":1687},{"id":"b2fe0b27-2cdd-4cb5-bfcc-78159c3445cc","type":"level-condition","detail":"level","amount":0,"value":"40000","product_package_id":1687},{"id":"49b8a2c2-59cf-4d00-aa7a-d53da5b4cfbd","type":"package","detail":"Travel Delay Package","amount":0,"product_package_id":1688},{"id":"8adac2e2-a9d0-4f23-962c-572fe63f5112","type":"package","detail":"Personal Accident Package","amount":0,"product_package_id":1689},{"id":"7c4ce0bf-3218-48eb-aadf-77407204f3aa","type":"package","detail":"Personal Liability Package","amount":0,"product_package_id":1690},{"id":"9c11498e-4729-436a-a15d-9f3ebb2c9a1f","type":"package","detail":"Baggage Package","amount":0,"product_package_id":1691},{"id":"f6c05979-0482-408e-adcc-b1cbbbcc59ed","type":"package","detail":"Snow Package","amount":0,"product_package_id":1693},{"id":"bd96bc08-ae05-4fbf-88f7-0cc3c29e3432","type":"package","detail":"Motorcycle / Moped Pack","amount":0,"product_package_id":1694},{"id":"8b235c7d-1c05-46c2-8402-e7b3554cc21e","type":"package","detail":"Cruise Pack","amount":0,"product_package_id":1695},{"id":"8d96132c-5742-44a9-a568-ad986a8296d1","type":"package","detail":"Pet Cover","amount":0,"product_package_id":1696},{"id":"d8e5417b-808a-49bc-8057-24b90bde9017","type":"package","detail":"Rental Vehicle Damage Package","amount":0,"product_package_id":1692},{"id":"2b55fbfb-7d0e-46aa-8af9-e192a1d23cb3","type":"level-condition","detail":"start_date","amount":0,"value":"2023-07-04","product_package_id":1692},{"id":"8c541f68-fda7-4cf9-87b9-e005dc2d99a9","type":"level-condition","detail":"end_date","amount":0,"value":"2023-07-25","product_package_id":1692},{"id":"6ff8d8e9-731a-4567-87c4-0a6eb1c3730c","type":"level","detail":"Unlimited","amount":2000000,"value":"9865","product_package_id":1686},{"id":"36ff88a7-e0d6-4a01-9fe3-b230fd5cfdd0","type":"level","detail":"40000","amount":40000,"value":"9877","product_package_id":1687},{"id":"5d1a45ce-d15d-4194-9fc0-a89584d7ffff","type":"level","detail":"2000","amount":2000,"value":"9878","product_package_id":1688},{"id":"3fa06bea-20db-4a1f-a703-cc1854ab55c9","type":"level","detail":"25000","amount":25000,"value":"9879","product_package_id":1689},{"id":"ef6a9b12-b2ce-4803-aec2-f61ca5417bf0","type":"level","detail":"2500000","amount":2500000,"value":"9880","product_package_id":1690},{"id":"3cbe9c8c-c538-4e40-9ff3-75409283fec8","type":"level","detail":"1000","amount":1000,"value":"9881","product_package_id":1691},{"id":"932b83aa-bb54-4b17-8613-172b7a492807","type":"level","detail":"Covered","amount":0,"value":"10255","product_package_id":1693},{"id":"b4a400e6-0fb8-4ad0-b8ff-c295ae066236","type":"level","detail":"Covered","amount":0,"value":"10256","product_package_id":1694},{"id":"1b635e70-d598-4ded-aedb-7508f123154d","type":"level","detail":"Covered","amount":0,"value":"10257","product_package_id":1695},{"id":"65122ba0-78ed-405f-a9fa-09fad2b6481e","type":"level","detail":"300","amount":500,"value":"10258","product_package_id":1696},{"id":"984f2596-cfb2-47f6-b894-d405db1acc38","type":"level","detail":"22 days","amount":300,"value":"9910","product_package_id":1692},{"id":"f5d5055c-4cc5-4f5f-a2c4-2fc950c03f9c","type":"included_tax","detail":"stamp_duty","amount":0},{"id":"dff14152-ad86-4a2e-9bbd-8c5f00cc6065","type":"included_breakdown_tax","detail":"witholding","amount":0},{"id":"320a82b9-0a83-4232-aaec-42780c1bcbe0","type":"premium","detail":"Policy premium","amount":0},{"id":"9c2d910b-04ab-41cc-9e88-4b169b95578c","type":"total","detail":"Policy total","amount":0}],"insured":{"first_name":"Test Name","middle_name":"John","last_name":"Johnson","dob":"1990-01-05"},"destinations":[{"country_code":"GE","country_name":"Georgia"}],"is_main":true,"order":{"_id":"649d8feb278d03546f0fb3aa","quote_id":"6421a37ce2769c519400acd7","currency_id":"AUD","site_id":1,"applicant":{"first_name":"Test Name","middle_name":"John","last_name":"Johnson","dob":"1990-01-05","age_at_travel":35,"email":"mnordin@battleface.com","contact_number":"123123123","address":"KING STREET, NEWTOWN","city":"Sydney","post_code":"2055","country_code":"AU","state_code":"NSW","ip_address":"172.31.15.29"},"flags":{"send_policy_emails":true,"generate_policy_document":true,"trigger_sanction_search":true},"schema_version":1,"document_version":3,"status":"Cancelled","status_updated_at":"2023-06-29T14:06:48.924000Z","ordered_at":"2023-06-29T14:06:33.563000Z","order_number":"1-JUN8668-D735471FA063","premium":0,"total":0,"fees":0,"tax":0,"refund_amount":0,"is_refunded":false,"tax_rate":0,"details":[{"type":"included_tax","detail":"stamp_duty","amount":0,"id":"3dbd0412-36e6-4453-a5a2-9f44c7d65d58","_id":"649d8ff8f19b9f13840abb4e"},{"type":"included_breakdown_tax","detail":"witholding","amount":0,"id":"a16743b7-23d2-45ea-8a73-68100f5bc04b","_id":"649d8ff8f19b9f13840abb4f"}],"client_id":54335,"updated_at":"2023-06-29T14:06:49.047000Z","created_at":"2023-06-29T14:06:35.636000Z","approved_at":"2023-06-29T14:06:39.386000Z","meta":null},"meta":null}],"applicant":{"first_name":"Test Name","middle_name":"John","last_name":"Johnson","dob":"1990-01-05","age_at_travel":35,"email":"mnordin@battleface.com","contact_number":"123123123","address":"KING STREET, NEWTOWN","city":"Sydney","post_code":"2055","country_code":"AU","state_code":"NSW","ip_address":"172.31.15.29"},"affiliate":{"id":1,"commission_amount":0,"commission_percentage":0},"details":[{"id":"3dbd0412-36e6-4453-a5a2-9f44c7d65d58","type":"included_tax","detail":"stamp_duty","amount":0},{"id":"a16743b7-23d2-45ea-8a73-68100f5bc04b","type":"included_breakdown_tax","detail":"witholding","amount":0}]}}