Pedido com divisão de pagamento com PIX

Segue abaixo exemplo de pedido com divisão de pagamento para QR Code PIX. Para mais informações de criação de pedidos com QR Code consulte pedido com QR code

curl --request POST \
     --url https://sandbox.api.pagseguro.com/orders \
     --header 'Authorization: Bearer <token>' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "reference_id": "ex-00001",
  "customer": {
    "name": "Jose da Silva",
    "email": "[email protected]",
    "tax_id": "12345678909",
    "phones": [
      {
        "country": "55",
        "area": "11",
        "number": "999999999",
        "type": "MOBILE"
      }
    ]
  },
  "items": [
    {
      "reference_id": "referencia do item",
      "name": "nome do item",
      "quantity": 1,
      "unit_amount": 10000
    }
  ],
  "shipping": {
    "address": {
      "street": "Avenida Brigadeiro Faria Lima",
      "number": "1384",
      "complement": "apto 12",
      "locality": "Pinheiros",
      "city": "São Paulo",
      "region_code": "SP",
      "country": "BRA",
      "postal_code": "01452002"
    }
  },
    "qr_codes": [
        {
            "amount": {
                "value": 10000
            },
            "expiration_date": "2023-10-18T20:15:59-03:00",
            "splits": {
                "method": "FIXED",
                "receivers": [
                    {
                        "account": {
                            "id": "ACCO_12345"
                        },
                        "amount": {
                            "value": 6000
                        }
                    },
                    {
                        "account": {
                            "id": "ACCO_67890"
                        },
                        "amount": {
                            "value": 4000
                        }
                    }
                ]
            }
        }
    ],
    "notification_urls": [
        "https://meusite.com/notificacoes"
    ]
}'
{
    "id": "ORDE_08DE032B-A890-4BB8-BBDE-CD88521871A0",
    "reference_id": "reference-teste",
    "created_at": "2023-10-18T14:45:49.656-03:00",
    "customer": {
        "name": "Jose da Silva",
        "email": "[email protected]",
        "tax_id": "12345678909",
        "phones": [
          {
            "country": "55",
            "area": "11",
            "number": "999999999",
            "type": "MOBILE"
          }
        ]
    },
    "items": [
        {
            "reference_id": "referencia do item",
            "name": "nome do item",
            "quantity": 1,
            "unit_amount": 10000
        }
    ],
    "shipping": {
        "address": {
          "street": "Avenida Brigadeiro Faria Lima",
          "number": "1384",
          "complement": "apto 12",
          "locality": "Pinheiros",
          "city": "São Paulo",
          "region_code": "SP",
          "country": "BRA",
          "postal_code": "01452002"
        }
    },
    "qr_codes": [
        {
            "id": "QRCO_CF532BDB-5FE9-4FB8-B849-6E55E06796F0",
            "expiration_date": "2023-10-19T23:59:59.000-03:00",
            "amount": {
                "value": 10000
            },
            "text": "00020101021226860014br.gov.bcb.pix2564sandbox.api.pagseguro.com/pix/v2/CF532BDB-5FE9-4FB8-B849-6E55E06796FE27600016BR.COM.PAGSEGURO0136CF532BDB-5FE9-4FB8-B849-6E55E06796FE5204899953039865406100.005802BR5914TEsteste6009SAO PAULO62070503***63043755",
            "arrangements": [
                "PIX"
            ],
            "links": [
                {
                    "rel": "QRCODE.PNG",
                    "href": "https://sandbox.api.pagseguro.com/qrcode/QRCO_CF532BDB-5FE9-4FB8-B849-6E55E06796F0/png",
                    "media": "image/png",
                    "type": "GET"
                },
                {
                    "rel": "QRCODE.BASE64",
                    "href": "https://sandbox.api.pagseguro.com/qrcode/QRCO_CF532BDB-5FE9-4FB8-B849-6E55E06796F0/base64",
                    "media": "text/plain",
                    "type": "GET"
                }
            ],
            "splits": {
                "method": "FIXED",
                "receivers": [
                    {
                        "account": {
                            "id": "ACCO_12345"
                        },
                        "amount": {
                            "value": 6000
                        }
                    },
                    {
                        "account": {
                            "id": "ACCO_67890"
                        },
                        "amount": {
                            "value": 4000
                        }
                    }
                ]
            }
        }
    ],
    "notification_urls": [
        "https://meusite.com/notificacoes"
    ],
    "links": [
        {
            "rel": "SELF",
            "href": "https://sandbox.api.pagseguro.com/orders/ORDE_08DE032B-A890-4BB8-BBDE-CD88521871A0",
            "media": "application/json",
            "type": "GET"
        },
        {
            "rel": "PAY",
            "href": "https://sandbox.api.pagseguro.com/orders/ORDE_08DE032B-A890-4BB8-BBDE-CD88521871A0/pay",
            "media": "application/json",
            "type": "POST"
        }
    ]
}