# Add or Update Application Purchase PUT /partner/v2/shops/:shop_uuid/applications/:application_uuid/purchase/:purchase_uuid If the application already includes a purchase, this request updates its details. If there is no purchase in the application, the request creates a purchase with the details indicated in the body. Endpoint: PUT /partner/v2/shops/{shop_uuid}/applications/{application_uuid}/purchase/{purchase_uuid} Security: bearerAuth ## Path parameters: - `shop_uuid` (string, required) The unique identifier of the shop. Example: "38571c75-2590-4c81-8252-531613c96363" - `application_uuid` (string, required) The unique identifier of a particular credit application. Example: "471e6282-3384-412b-af7b-646eb8f04391" - `purchase_uuid` (string, required) The unique identifier of a specific purchase within a credit application. Example: 1234 ## Request fields (application/json): - `purchase` (object) - `purchase.purchase_reference` (string) The unique identifier of a shopping cart or order at the partner side. - `purchase.description` (string) Textual description of the order or shopping cart, that is meaningful for the customer. - `purchase.additional_details` (object) - `purchase.additional_details.description` (string) Any additional details about the order that are not covered with predefined parameters. ## Response 200 fields (application/json): - `purchase` (object) - `purchase.uuid` (string) The unique identifier of the purchase. ## Response 401 fields (application/json): - `message` (string) Unauthorized Example: "unauthorized" ## Response 403 fields (application/json): - `message` (string) Unauthorized access Example: "User is not authorized to access this resource with an explicit deny" ## Response 404 fields (application/json): - `message` (string) Not Found Example: "application_not_found" ## Response 500 fields (application/json): - `message` (string) Internal server error Example: "internal_server_error"