# MD for: https://www.mercadopago.com.br/developers/en/docs/checkout-api-orders/integration-test/pix.md \# Perform a Test Purchase with Pix To test your integration with \*\*Pix\*\* you'll need to create an order with predefined values. This means that it will only be possible to verify the operation of your integration through a requisition, and not by simulating a purchase. For this, follow the steps below. :::AccordionComponent{title="Create test order"} To perform these tests, send the following request to the :TagComponent{tag="API" text="/v1/orders" href="/developers/en/reference/online-payments/checkout-api/create-order/post"} endpoint, along with your :toolTipComponent\[test Access Token\]{content="Private key of the application created in Mercado Pago, that must be used in the backend. You can access it through \*Your integrations > Integration data > Tests > Test credentials\*. The test Access Token starts with the prefix \`APP\_USR\`."}. \`\`\`curl curl --request POST \\ --url https://api.mercadopago.com/v1/orders \\ --header 'Content-Type: application/json' \\ --data '{ "type": "online", "external\_reference": "ext\_ref\_1234", "total\_amount": "50.00", "payer": { "email": "test\_user\_br@testuser.com", "first\_name": "APRO" }, "transactions": { "payments": \[ { "amount": "50.00", "payment\_method": { "id": "pix", "type": "bank\_transfer" } } \] } }' \`\`\` The value \`APRO\` for the \`payer.first\_name\` field is what determines that this predefined request returns as a response a created order with the status \`action\_required\`, as shown below. Afterwards, the payment status will automatically change to approved. \`\`\`json { "id": "ORD01JP84C939T20S0P1DN382FQ6K", "type": "online", "processing\_mode": "automatic", "external\_reference": "ext\_ref\_1234", "total\_amount": "50.00", "country\_code": "BRA", "user\_id": "123456", "status": "action\_required", "status\_detail": "waiting\_transfer", "capture\_mode": "automatic", "created\_date": "2025-03-13T16:11:10.826Z", "last\_updated\_date": "2025-03-13T16:11:11.736Z", "integration\_data": { "application\_id": "123456789" }, "transactions": { "payments": \[ { "id": "PAY01JP84C939T20S0P1DN6FCMWQC", "amount": "50.00", "reference\_id": "0002gw9x2v", "status": "action\_required", "status\_detail": "waiting\_transfer", "payment\_method": { "id": "pix", "type": "bank\_transfer", "ticket\_url": "https://www.mercadopago.com.br/sandbox/payments/104669748043/ticket?caller\_id=1985141462&hash=1eff4445-4454-4308-a6b0-d2a1651ca44f", "qr\_code": "00020126580014br.gov.bcb.pix0136b76aa9c2-2ec4-4110-954e-ebfe34f05b615204000053039865406200.005802BR5918TESTUSER20543760926009Sao Paulo62250521mpqrinter1046697480436304B70B", "qr\_code\_base64": "" } } \] } } \`\`\` ::: :::AccordionComponent{title="Verify test order"} Finally, to verify if the test order was created correctly, send a \*\*GET\*\* request to the :TagComponent{tag="API" text="/v1/orders/{id}" href="/developers/en/reference/online-payments/checkout-api/get-order/get"} endpoint, replacing \`id\` with the order identification, received in the response to its creation. ::: Ready! Once these steps are completed, the integration of Pix as a payment method is complete, and you can either continue testing other integrated payment methods, or \[go to production\](https://www.mercadopago.com.br/developers/en/docs/checkout-api-orders/go-to-production).