Through this endpoint is possible to create a PagSeguro URL

🚧

Important!

Keep the body params following the same sequence as you see above!

Example of API Response:

{
    "transactionId": "0C93EE11-CCAC-3CC5-76BD-018CDF316150",
    "operationId": 10,
    "status": 0,
    "message": "PagSeguro URL has been generated successfully.",
    "log": "",
    "errorCode": "",
    "order": {
        "reference": "123456789",
        "totalAmount": 10000,
        "currency": "986",
        "dateTime": "1550494630"
    },
    "processor": {
        "acquirer": "Pagseguro",
        "acquirerId": "7",
        "details": {
            "id": "833DA747E6E6A0A444FD5FB2EF13C647",
            "amount": "10000",
            "date": "2019-02-18T09:57:10-03:00"
        },
        "urlReturn": "https:\/\/pagseguro.uol.com.br\/v2\/checkout\/payment.html?code=833DA747E6E6A0A444FD5FB2EF13C647"
    }
}
{
    "transactionId": null,
    "status": {
        "code": 409,
        "message": "ERROR - XML"
    },
    "result": {
        "error": {
            "code": 101,
            "action": "XML",
            "message": "XML ERROR",
            "details": "<![CDATA[Element 'merchantKey': [facet 'minLength'] The value has a length of '0'; this underruns the allowed minimum length of '10'.\n]]>",
            "moreInfo": "<![CDATA[Please check fields format and special character.]]>"
        }
    }
}
Language
Click Try It! to start a request and see the response here!