PUT {{baseURL}}/pay-api/v1/transactions/settings/autofill
This endpoint updates Level 2-Level 3 autofill settings.
Care must be taken to complete all the fields with the existing information.
See Also:
To list level 2 and 3 autofill settings, see GET /pay-api/v1/transactions/settings/autofill.
Security
Bearer
- Mock serverhttps://developer.flute.com/_mock/api-reference/pay-api/v1/transactions/settings/autofill
- Sandbox environmenthttps://sandbox.api.flute.com/pay-api/v1/transactions/settings/autofill
- Production environmenthttps://api.flute.com/pay-api/v1/transactions/settings/autofill
PUT /pay-api/v1/transactions/settings/autofill HTTP/1.1
Host: sandbox.api.flute.com
Authorization: Bearer <YOUR_JWT_HERE>
Accept: application/json
Content-Type: application/json
{
"l2Settings": {
"taxRate": 8.6
},
"l3Settings": {
"product": {
"name": "Coffee service",
"code": "SVC-COFFEE",
"unitPrice": 25.00,
"measurementUnit": "each",
"quantity": 1,
"discountPercentage": 0,
"description": "Default line item for business orders"
},
"shippingCharge": 0,
"dutyChargeRate": 0
}
}