# API integration

## Payments and refunds

### Does the payment link get cancelled after the due date?

No, the due date is meant for display to payers and is **optional.**

Payment links are valid as long as (1) they aren't cancelled by someone from your agency and (2) payment has not been successful. Cancellations must be done manually.

### Does PaySG return payment status information to our e-service?

Yes. We have [webhooks](https://guide.pay.gov.sg/webhooks)[ ](https://guide.pay.gov.sg/webhooks/introduction)that you can use for real-time status updates.

### Is the payment page / payment email customisable?

No, the fields in the payment page and payment email are not customisable.

## Resources

### Do you provide code snippets for Java/Python etc.?

No, we do not provide code snippets. Please refer to our guide on [endpoints ](https://guide.pay.gov.sg/start-an-api-integration/endpoints)and [API resources](https://guide.pay.gov.sg/api-resources) for relevant information.

### Does PaySG have a refund API?

Yes, we have a refund API. Please refer to [refund-a-payment](https://guide.pay.gov.sg/api-resources/payments/refund-a-payment "mention")f or more information.

## Integration

### What is the lead time for integrating with PaySG?

Please refer to our section on [timelines](https://guide.pay.gov.sg/faq/timeline) for more information.

### Can I integrate my intranet application/e-service with PaySG?

No, PaySG requires internet access.

### Can PaySG interface with our agency's existing financial system (e.g. Workday)?

PaySG is not currently integrated with Workday by default. You may make use of our APIs should you wish to integrate our services with your services.

### Can PaySG interface with our vendor's system?

Please refer to our guide on our [endpoints](https://guide.pay.gov.sg/start-an-api-integration/endpoints) to find out more about how your vendor can integrate with our APIs.

## Others

### How do I redirect users back to my agency's page?

Include a return\_url of choice when creating a new payment link.&#x20;
