• France
status page
Demo shops
assistance
FAQContact support
Search
Categories
Tags
Europe (English)
France
Spain
Europe (English)
India
Homepage
Use cases
Create a payment
Create an installment payment
Create a multi-card (split) payment
Create a payment by Alias (Token)
Create a payment link
Create a recurring payment
Manage subscriptions
Manage your transactions (refund, cancel...)
Analyze your reports
API docs
Embedded Form
REST API
Hosted payment
Mobile payment
File exchange
SDD mandates by REST API
Snippets
Payment methods
Plugins
Marketplace
Guides
Merchant Back Office
Back Office Expert
Functional guides

Modifying a refund request

A refund in progress can be modified within the limit of its initial amount as long as it has not been executed (CREATED or PENDING status).

The modification is made using the UUID of the corresponding refund, via the resource:

PUT /refunds/{uuid}

Note: If the refund amount is unchanged, the server returns an HTTP 400 error.

Example:

Request

PUT https://secure.lyra.com/marketplace/refunds/16ad9da8-b9cb-11e4-97c6-b1229586dec7

Body

{             
  "order":  "9537e049-8862-400a-ae8d-da2ec9ca6051",             
  "reference": "remb000045",             
  "description": "Remboursement Mme Lafont 001",             
  "currency": "EUR",             
  "items": [
      {                                         
        "seller": "dfc42a76-10b5-421a-91cd-c288c8265c92",                                         
        "reference": "remb000045a",                                         
        "description":"Phoneshop",                                                
        "amount": 9450,                                         
        "is_commission": false 
      },
      {                                         
        "seller":"975e2a43-7e72-438c-a2b2-b61347aa160c",                                         
        "reference": "remb000045b",                                         
        "description": "Gestionnaire",                                         
        "amount": 900,
        "is_commission":false
      }
  ]
}

Response

{ 
  "uuid": "83402cc0-d969-443b-a72a-0f2fe9557879",
  "href": "https://secure.lyra.com/marketplace/refunds/83402cc0-d969-443b-a72a-0f2fe9557879",
  "created_at": "2019-06-11T09:31:59.659687Z",
  "updated_at": "2019-06-11T09:52:51.959406Z",
  "order": "67ca248e-99cd-4345-9795-5873bb6fd8f2",
  "reference": "remb000045", 
  "description": "Remboursement Mme Lafont 001", 
  "amount": 10905, 
  "currency": "EUR",
  "status": "PENDING",
  "transaction": null,
  "items": [
      {     
        "seller": "dfc42a76-10b5-421a-91cd-c288c8265c92",     
        "refund": "83402cc0-d969-443b-a72a-0f2fe9557879",
        "item": "9f7c6d31-deff-4299-a3db-71bb214cae9e",     
        "reference": "remb000045a",     
        "description":"Phoneshop",            
        "amount": 9450,     
        "is_commission": false   
      },   
      {     
        "seller":"975e2a43-7e72-438c-a2b2-b61347aa160c",     
        "refund": "83402cc0-d969-443b-a72a-0f2fe9557879",
        "item": "7b99691b-0492-42ff-a819-302ac178fc7e",     
        "reference": "remb000045b",     
        "description": "Gestionnaire",     
        "amount": 900,     
        "is_commission": false   
      }
  ]
}
Jobs
Legal
GDPR
25.18-1.11