Skip to content

chore: add script to update stripe invoice with discount line item - #633

Open
BravoNatalie wants to merge 1 commit into
mainfrom
chore/update-stripe-invoice
Open

chore: add script to update stripe invoice with discount line item#633
BravoNatalie wants to merge 1 commit into
mainfrom
chore/update-stripe-invoice

Conversation

@BravoNatalie

Copy link
Copy Markdown
Contributor

Adds a one-time operational script to grant a free month to subscribers on specific plans by crediting the base fee line item on their draft invoices before finalization.

The script reads invoice IDs from a CSV (generated via Stripe Sigma), validates each invoice is still draft and matches the expected billing period, then creates a negative invoice item equal to the base fee amount to zero it out.

@BravoNatalie
BravoNatalie requested a review from alanshaw as a code owner April 2, 2026 23:06
@seed-deploy
seed-deploy Bot temporarily deployed to pr633 April 2, 2026 23:06 Inactive
@seed-deploy
seed-deploy Bot temporarily deployed to pr633 April 2, 2026 23:06 Inactive
@seed-deploy

seed-deploy Bot commented Apr 2, 2026

Copy link
Copy Markdown
View stack outputs
  • pr633-warm-upload-api-BillingDbStack

    Name Value
    customerTableName pr633-warm-upload-api-customer
    egressTrafficMonthlyTableName pr633-warm-upload-api-egress-traffic-monthly
    egressTrafficTableName pr633-warm-upload-api-egress-traffic-events
    spaceDiffArchiveTableName pr633-warm-upload-api-space-diff-archive
    spaceDiffTableName pr633-warm-upload-api-space-diff
    spaceSnapshotTableName pr633-warm-upload-api-space-snapshot
    usageTable pr633-warm-upload-api-usage
  • pr633-warm-upload-api-BillingStack

    Name Value
    ApiEndpoint https://rlj786o4ee.execute-api.us-east-2.amazonaws.com
    billingCronHandlerURL https://xkw6fxzf2fzvqgtgmcvacmpl4i0cepag.lambda-url.us-east-2.on.aws/
    CustomDomain https://pr633.billing.warm.storacha.network
    EgressTrafficQueueURL https://sqs.us-east-2.amazonaws.com/505595374361/pr633-warm-upload-api-egress-traffic-queue
  • pr633-warm-upload-api-CarparkStack

    Name Value
    BucketName pr633-warm-upload-api-carpark-0
    Region us-east-2
  • pr633-warm-upload-api-RoundaboutStack

    Name Value
    ApiEndpoint https://staging.roundabout.web3.storage/
    CustomDomain Using ROUNDABOUT_API_URL - no custom domain
  • pr633-warm-upload-api-UcanInvocationStack

    Name Value
    agentMessageBucketName pr633-warm-upload-api-workflow-store-0
  • pr633-warm-upload-api-UploadApiStack

    Name Value
    ApiEndpoints ["https://22h8u0zfo8.execute-api.us-east-2.amazonaws.com"]
    CustomDomains ["https://pr633.up.warm.storacha.network"]
  • pr633-warm-upload-api-BusStack

  • pr633-warm-upload-api-FilecoinStack

  • pr633-warm-upload-api-UcanFirehoseStack

  • pr633-warm-upload-api-UploadDbStack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant